# Server Side Image Map

> Server-side image maps must not be used, because they rely on mouse coordinates and offer no keyboard-accessible way to activate the linked regions.

Source: https://knowledge.evinced.com/web/web-validations/server-side-image-map

Server-side image maps must not be used, because they rely on mouse coordinates and offer no keyboard-accessible way to activate the linked regions.

A server-side image map is an `ismap` image placed inside a link. When the user clicks the image, the browser sends the click coordinates to the server, which decides what to do. Focus never lands on individual regions, so people who use a keyboard, screen reader, or voice control cannot operate the map. Replace it with a client-side image map or ordinary text links so everyone can reach the same destinations.

## Pass Patterns

### Client-side image map

Each hotspot is an `<area>` element, so it receives focus and exposes an accessible name.

```html
<img src="world.png" alt="World map" usemap="#world-map" />


<map name="world-map">
    <area shape="rect" coords="34,44,270,350" href="/oceania" alt="Oceania" />
    <area shape="circle" coords="337,300,44" href="/europe" alt="Europe" />
</map>
```

### Redundant text links

Text links beside the image give everyone, including keyboard users, a clear way to reach the same pages.

```html
<p>
    <a href="/oceania">Oceania</a> |
    <a href="/europe">Europe</a>
</p>
```

## Fail Patterns

### Server-side map with no alternative

The `ismap` image sends only click coordinates, so keyboard users cannot reach the destinations.

```html
<a href="/mapper">
    <img src="nav.png" alt="Site navigation" ismap />
</a>
```

## WCAG techniques

### Sufficient techniques

-   [G202: Ensuring keyboard control for all functionality](https://www.w3.org/WAI/WCAG22/Techniques/general/G202)
-   [H91: Using HTML form controls and links](https://www.w3.org/WAI/WCAG22/Techniques/html/H91)

### Failure techniques

-   [F54: Failure of Success Criterion 2.1.1 due to using only pointing-device-specific event handlers (including gesture) for a function](https://www.w3.org/WAI/WCAG22/Techniques/failures/F54)

## Try It Yourself

### Using a keyboard

1.  Load the page.
2.  Press Tab repeatedly.
3.  Watch where focus lands.

**Expected results:** Focus reaches a control for each destination.

**Actual results:** Focus skips the regions, and the hotspots cannot be activated.

### Using a screen reader

**New to screen reader testing, or need a refresher?**  
Review this article first: [Practical guides for using screen readers](https://knowledge.evinced.com/a11y-essentials/practical-guides-for-using-screen-readers)

1.  Turn on a screen reader.
2.  Navigate by links or press Tab on the page with the image map.
3.  Listen to the announced elements.

**Expected results:** Each destination is announced with its accessible name.

**Actual results:** Only a single image link is announced, with no information about the destinations.

## FAQ

**How does this issue relate to 2.1.1 Keyboard?**

SC 2.1.1 requires all functionality to be operable with a keyboard. A server-side image map depends on mouse coordinates, so keyboard users cannot reach the linked content, which fails the criterion.

**Why is this issue marked as Minor?**

The barrier is limited to the specific image, and developers can usually fix it quickly by switching to a client-side map or adding text links. The impact is real but narrow, so it is rated minor.

## Standards and Regulations

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [2.1.1 Keyboard](https://www.w3.org/TR/WCAG22/#keyboard) (A) | All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes, except where the underlying function requires input that depends on the path of the user's movement and not just the endpoints. |
| EN 301 549 | [9.2.1.1 Keyboard](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |
| Section 508 | [1194.22(f)](https://www.federalregister.gov/documents/2018/01/18/2018-00712/section-508-standards-update#d22) | Client-side image maps shall be provided instead of server-side image maps except where the regions cannot be defined with an available geometric shape. |
| 508 Trusted Tester | [2.1.1-keyboard-access, 4.A](https://section508coordinators.github.io/TrustedTester/keyboard.html#check-211-keyboard-access) | All functionality can be accessed and executed using only the keyboard. |

## Personas impacted by this issue

-   [Keyboard](https://knowledge.evinced.com/a11y-essentials/personas#keyboard)
-   [Screen Reader](https://knowledge.evinced.com/a11y-essentials/personas#screen-reader)
-   [Voice Input](https://knowledge.evinced.com/a11y-essentials/personas#voice-input)

## Related Issues

-   [area-alt](https://knowledge.evinced.com/web/web-validations/area-alt)
-   [keyboard-accessible](https://knowledge.evinced.com/web/web-validations/keyboard-accessible)
