The nohref attribute was a Boolean on <area> inside a client-side image map. It meant the region was not a hyperlink. In HTML 4, an <area> was expected to have either href or nohref.
The HTML Standard lists nohref as obsolete: authors must not use it. Omitting href is enough — an area without href is not a link. If there is no href, also omit alt.
Deprecated / obsolete.
Do not ship nohref on new pages. Recognize it in legacy maps, then migrate by removing nohref and leaving href off non-link regions.
Syntax
HTML Syntax
syntax.html
<!-- obsolete --> <area … nohref>
<!-- modern --> <area shape="…" coords="…"> ← no href
Modern rule: skip both nohref and href when the region should not navigate.
Values
Attribute Values
Boolean historically — presence meant “not a link.” Prefer the modern column:
Only the circle is clickable — no nohref needed for the rest.
How It Works
Define only the hotspots that should link.
Pixels outside those areas are not links by default.
You rarely need an inert <area> at all.
If you do, omit href (never add nohref).
Edge Cases & Pitfalls
Most issues are obsolete markup and incorrect alt rules.
obsolete
Do not use nohref in new HTML
Validators and the Standard reject it for authors. Omit href instead.
alt
No href → no alt
Linked areas need alt. Non-link areas must omit alt.
boolean
nohref="false" was never a good idea
Like other Booleans, presence meant “on.” Modern code should not include the attribute at all.
simpler
Prefer fewer areas
Often you only need <area> elements for the clickable hotspots — no inert filler areas.
migrate
Updating old maps
Delete nohref. If the area should stay non-link, leave href off and remove any alt.
Compatibility
Browser Support
nohref is an obsolete HTML attribute for <area>. Engines may still parse it, but authors must not use it.
✓ Obsolete · Do not use
nohref
Listed as obsolete in the HTML Standard. Omitting href is the supported way to make a non-link area. Legacy nohref may still parse in many browsers for compatibility.
—Authoring status
Google ChromeParses legacy; use omit href
Obsolete
Mozilla FirefoxParses legacy; use omit href
Obsolete
Apple SafariParses legacy; use omit href
Obsolete
Microsoft EdgeParses legacy; use omit href
Obsolete
OperaParses legacy; use omit href
Obsolete
Samsung InternetParses legacy; use omit href
Obsolete
Internet ExplorerLegacy HTML4 support
Legacy
nohrefObsolete — omit href instead
Bottom line: Do not author nohref. For non-clickable regions, omit href (and omit alt). For links, set href and alt.
Remember
Key Takeaways
Was: Boolean on <area> meaning “not a hyperlink.”
Now: obsolete — omit href instead.
alt rule: required with href; omit without href.
Tip: often you only need areas for the clickable hotspots.
One line:nohref is obsolete — make a non-link area by leaving href off.
Frequently Asked Questions
On area elements in image maps, nohref was a Boolean that meant the region was not a hyperlink. In HTML4, an area needed either href or nohref.
No. The HTML Standard lists it as obsolete. Omit the href attribute instead — an area without href is not a link.
Leave href off the area. If there is no href, omit alt as well. Keep shape and coords to describe the region if you still need the geometry.
Many engines still parse it for compatibility, but authors must not use it. New pages should omit href.
In modern HTML, yes — simply omit href. That is the correct way to mark a non-selectable region.
When the area is a link (has href), provide alt. When there is no href, the alt attribute must be omitted.