HTML area href attribute
Examples
With clickable image map area:
<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.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>
usemap="#planetmap">
<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>
try it"
Browser Support
All major browsers support the href attribute.
Definition and Usage
Target area connected href attribute specifies.
If no href attribute, <area> tag is not a link.
Differences between HTML 4.01 and HTML5
In HTML5, <area> tag href attribute is no longer used, use placeholder to specify links.
grammar
<area href="URL">
Property Value
值 | 描述 |
---|---|
URL | 链接的 URL。可能的值:
|