HTML <area> href Attribuut
Voorbeeld
Gebruik het href-attribuut om het linkdoel voor elk gebied in de imagemap op te geven:
<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>
Definitie en gebruik
Het href
attribuut specificeert het hyperlinkdoel voor het gebied.
Als het href
attribuut niet aanwezig is, is de
<area>
tag geen hyperlink.
Browserondersteuning
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Syntaxis
<area href="URL">
Attribuutwaarden
Value | Description |
---|---|
URL | Specifies the hyperlink target for the area. Possible values:
|
❮ HTML <area>-tag