HTML <area> href Atribut
Příklad
Pomocí atributu href zadejte cíl odkazu pro každou oblast v obrazové mapě:
<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>
Definice a použití
Atribut href
určuje cíl hypertextového odkazu pro oblast.
Pokud href
atribut není přítomen,
<area>
značka není hypertextový odkaz.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Syntax
<area href="URL">
Hodnoty atributů
Value | Description |
---|---|
URL | Specifies the hyperlink target for the area. Possible values:
|
❮ HTML tag <area>