Latest web development tutorials

HTML area nohref property

Tag Reference HTML area HTML <area> tag

Examples

With clickable image map area, and use nohref properties:

<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.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently all major browsers do not support nohref property.


Definition and Usage

HTML5 The <area> tag is no longer supported nohref property.

nohref property is a boolean (Boolean) property.

This attribute specifies a region has no associated link.

Tip: nohref attribute specifies the <area> tag has no associated link. Easier way is to use the href attribute.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden, nohref property must be defined as <area nohref = "nohref" />.


grammar

<Area nohref>


Tag Reference HTML area HTML <area> tag