Rule

Image map alt text

Image map areas must have alternative text.

Rule
area-alt
WCAG 2.2
1.1.1 Non-text Content (opens in a new tab) (Level A)
2.4.4 Link Purpose (In Context) (opens in a new tab) (Level A)
Severity
Critical

What it checks

Each <area> with an href in an image map is a link, and a link needs a name. The rule fails an area that has no alt, aria-label or aria-labelledby, because a screen reader reaches the link and has nothing to announce for it.

Only maps in use are checked: the <map> must have a name that a visible <img> or <object> points to with usemap. Areas of a map no image uses pass.

Example

Fails

<img src="floor-plan.png" width="400" height="200" alt="Ground floor" usemap="#rooms">
<map name="rooms">
  <area shape="rect" coords="0,0,200,200" href="/rooms/kitchen">
  <area shape="rect" coords="200,0,400,200" href="/rooms/lounge">
</map>

Passes

<img src="floor-plan.png" width="400" height="200" alt="Ground floor" usemap="#rooms">
<map name="rooms">
  <area shape="rect" coords="0,0,200,200" href="/rooms/kitchen" alt="Kitchen">
  <area shape="rect" coords="200,0,400,200" href="/rooms/lounge" alt="Lounge">
</map>

The engine is tested against both examples.

How to fix it

Give every linked <area> an alt that names where it goes, as the link text would.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.