HTML <area> nohrefAttribute
Examples
Image map with clickable areas, using the nohref attribute:
<img src="planets.gif.html"
width="145" height="126"
alt="Planets"
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" nohref alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm.html" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm.html" alt="Venus">
</map>
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" nohref alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm.html" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm.html" alt="Venus">
</map>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently none of the mainstream browsers support the nohref attribute.
Definition and Usage
In HTML5, the <area> tag no longer supports the nohref attribute.
The nohref attribute is a boolean attribute.
This attribute specifies that an area has no associated link.
Tip:The nohref attribute indicates that the <area> tag has no associated link. A simpler way is to not use the href attribute.
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden, and the nohref attribute must be defined as <area nohref="nohref.html" />.
Syntax
<area nohref>
Other Extensions
HTML <area> Tag