English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The href attribute specifies the hyperlink target of the area, if the href attribute does not exist, the <area> tag is not a hyperlink, in HTML5 In HTML, the <area> tag no longer uses the href attribute; use placeholder to specify the link.
Image mapping with clickable areas:
<!DOCTYPE html> <html> <title>HTML:<area> href 属性 - 基础教程网 oldtoolbag.com</title> <body> <p>Click on the sun or one of the planets to observe it closely</p> <img src="planets.gif" width="145"height="126"alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,"82,126"href="sun.html" alt="Sun"> <area shape="circle" coords="90,58,3"href="mercur.html" alt="Mercury"> <area shape="circle" coords="124,58,8"href="venus.html" alt="Venus"> </map> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the href attribute.
The href attribute specifies the target of the link within the area.
If the href attribute is not used, the <area> tag is not a link.
In HTML5 In HTML, the <area> tag no longer uses the href attribute; use placeholder to specify the link.
<area href="URL">
Value | Description |
---|---|
URL | The URL of the link. Possible values:
|