Set target="_blank" only when a new tab is intentional.
Add rel="noopener noreferrer". Modern browsers also treat _blank as implicitly noopener.
Say so in alt so assistive tech users are not surprised.
Same rules as <a> for download, referrer, and tracking attributes.
Edge Cases & Pitfalls
Most image-map bugs come from wrong sizes, missing alt, or overlapping regions.
a11y
Always set alt on linked areas
With href, alt is required. Phrase it like a real link choice, not “click here”.
layout
Scaling breaks coords
If CSS resizes the image away from its coordinate system, hotspots drift. Keep matching width/height, or use <svg> for fluid UIs.
order
Overlaps: first match wins
Put specific regions before a catch-all shape="default" area.
name
usemap must match name
Use usemap="#my-map" with <map name="my-map">. A missing # or typo silently disables the map.
privacy
ping sends tracking POSTs
Support and user controls vary. Do not rely on it alone for analytics.
Compatibility
Browser Support
The <area> element is core HTML for image maps in every major browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<area>
Widely available since about July 2015 (and long before as HTML image maps). Chrome, Firefox, Safari, Edge, and Opera all support area, map, and usemap. Some extras such as ping vary.
97%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<area>Widely supported
Bottom line: Safe for classic image maps. Treat responsive scaling carefully, and prefer SVG when hotspots must stay fluid.
Geometry:shape + coords define each hotspot in image pixels.
A11y: linked areas need meaningful alt text.
Responsive: scaled images can misalign coords — plan size or use SVG.
One line: a good <area> has clear shape/coords, a real href, and useful alt.
UA style
Default CSS Settings
<area> is not painted as a visible box. User agents typically hide it and attach hit-testing to the mapped image:
default.css
area {
display: none;
}
You style the <img>, not the areas. Focus outlines for image-map links are browser-dependent — test keyboard access.
Frequently Asked Questions
The area element defines one clickable region (hotspot) inside an image map. Place area elements inside map, then link the image with usemap="#map-name".
Yes. area has a start tag only — no end tag and no child content. All behavior comes from attributes like shape, coords, href, and alt.
If the area has an href (it is a link), alt is required. Write alt so it offers the same choice the hotspot would if the image were unavailable.
rect (rectangle), circle, poly (polygon), and default (the rest of the image not covered by other areas). coords format depends on the shape.
coords use CSS pixels tied to the image’s intrinsic size. If CSS shrinks the image without matching width/height attributes (or recalculating coords), regions drift. Prefer fixed display size or SVG for fluid layouts.
Use area/map for a few hotspots on a raster image (PNG/JPG). Prefer SVG when you need many scalable, styleable interactive regions.