HTML <map> ชื่อแอตทริบิวต์
ตัวอย่าง
แผนผังรูปภาพพร้อมพื้นที่ที่สามารถคลิกได้:
<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>