English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML5The <area> nohref attribute is not supported, the nohref attribute is a boolean attribute. When present, it specifies that the area has no associated link.
Image map with clickable areas and nohref attribute:
<!DOCTYPE html> <html> <title>HTML: <area> nohref attribute - Basic Tutorial Website 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"nohref 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 it out ‹/›
IEFirefoxOperaChromeSafari
Currently, all mainstream browsers do not support the nohref attribute.
HTML5The <area> nohref attribute is not supported.
The nohref attribute is a boolean attribute.
When present, it specifies that the area has no associated link.
Tip: The nohref attribute indicates that the <area> tag does not have an associated link. A simpler way is not to use the href attribute.
In XHTML, attribute minimization is prohibited, and the nohref attribute must be defined as <area nohref="nohref" />。
<area nohref>