HTML <พื้นที่> คุณสมบัติ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 <พื้นที่>