English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag List

HTML: <area> 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.

 HTML <area> tag

Online Example

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently, all mainstream browsers do not support the nohref attribute.

Definition and Usage

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.

Differences between HTML and XHTML

In XHTML, attribute minimization is prohibited, and the nohref attribute must be defined as <area nohref="nohref" />。

Syntax

<area nohref>

 HTML <area> tag