سمة اسم <الخريطة> HTML
مثال
خريطة صورة مع مناطق قابلة للنقر:
<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400"
height="379">
<map name="workmap">
<area shape="rect"
coords="34,44,270,350" alt="Computer" href="computer.htm">
<area
shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
التعريف والاستخدام
تحدد السمة المطلوبة name
اسم مخطط الصورة.
ترتبط name
السمة بسمة البيانات
<img>
وتقوم usemap
بإنشاء علاقة بين الصورة والخريطة.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<map name="mapname">
قيم السمات
Value | Description |
---|---|
mapname | The name of the image map |
❮ علامة HTML <map>