Deprecated in HTML5. Do not use.

<area nohref> HTML Attribute

Attribute of
<area> HTML Tag
What does <area nohref> HTML Attribute do?
Specified that an area of an image map did not link to another resource.

Code Example

<!-- DEPRECATED -- The wrong way. -->

<img src="/wp-content/uploads/shapes.png" usemap="shapes-map">

<map name="shapes-map">
  <area shape="rect" title="Square" coords="19,28,222,228" href="/wp-content/uploads/square.png" target="_blank" />
  <area shape="circle" title="Circle" coords="361,132,96" nohref />
</map>

<!-- The right way. -->

<img src="/wp-content/uploads/shapes.png" usemap="shapes-map-2">

<map name="shapes-map-2">
  <area shape="rect" title="Square" coords="19,28,222,228" href="/wp-content/uploads/square.png" target="_blank" />
  <area shape="circle" title="Circle" coords="361,132,96" />
</map>

An <area> with no link

If you need to specify an <area> without a linked resource, simply omit the href attribute.