You are here: Reference > HTML > attributes > NOHREF (area)

NOHREF attribute (area)

Browser support:
Sets whether an area is a link.
The NOHREF is only an informational attribute for the author, indicating that a region has no associated link. It is simpler not to specify the href attribute.
JavaScript page for this attribute: noHref. You can find other example(s) there.

Possible values:

This attribute has no values.
Specifying the NOHREF attribute with an arbitrary value has the same effect as specifying it with no value.
For example, all of the following declarations have the same effect: nohref, nohref="true", nohref="false", nohref="on", nohref="nohref".
Although Boolean attributes may be used with no value in HTML, for XHTML compatibility, always use the NOHREF attribute in the following format: nohref="nohref".

Example HTML code 1:

This example illustrates the use of the NOHREF attribute:
<img src="area.gif" width="504px" height="126px" border="0px" alt="Solar System" usemap="#SampleMap" />
<map name="SampleMap">
    <area shape="rect" coords="1,-1,83,125" alt="rectangle" nohref="nohref">
    <area shape="circle" coords="234,57,30" alt="circle" href="#">
    <area shape="poly" coords="363,37,380,40,399,35,420,47,426,63,423,78,430,94,409,90,395,92,379,84,371,67,370,57" alt="polygon" href="#">
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content