سمة HTML <area> href
مثال
استخدم السمة href لتحديد هدف الارتباط لكل منطقة في خريطة الصورة:
<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>
التعريف والاستخدام
تحدد السمة href
هدف الارتباط التشعبي للمنطقة.
إذا كانت href
السمة غير موجودة ، فإن
<area>
العلامة ليست ارتباطًا تشعبيًا.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<area href="URL">
قيم السمات
Value | Description |
---|---|
URL | Specifies the hyperlink target for the area. Possible values:
|
❮ علامة HTML <area>