HTML <area> href Atribut
Contoh
Gunakan atribut href untuk menentukan target tautan untuk setiap area di peta gambar:
<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>
Definisi dan Penggunaan
Atribut href
menentukan target hyperlink untuk area tersebut.
Jika href
atribut tidak ada,
<area>
tag tersebut bukan hyperlink.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<area href="URL">
Nilai Atribut
Value | Description |
---|---|
URL | Specifies the hyperlink target for the area. Possible values:
|
tag HTML <area>