سمة شكل <area> HTML
مثال
استخدم سمة الشكل لتحديد شكل كل منطقة في خريطة الصورة:
<map
name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
التعريف والاستخدام
تحدد السمة shape
شكل المنطقة.
تُستخدم shape
السمة مع coords
السمة لتحديد حجم المنطقة وشكلها وموضعها.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
shape | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<area shape="default|rect|circle|poly">
قيم السمات
Value | Description |
---|---|
default | Specifies the entire region |
rect | Defines a rectangular region |
circle | Defines a circular region |
poly | Defines a polygonal region |
❮ علامة HTML <area>