The HTML ismap attribute
Quick answer
The HTML ismap attribute turns the image into a server-side image map, sending the click coordinates to the server. It is used on an <img> that is a child of an <a> with an href.
Overview
The ismap attribute turns the image into a server-side image map, sending the click coordinates to the server. It applies to an <img> that is a child of an <a> with an href.
On click, the browser appends the pixel coordinates to the link URL (?x,y). It is legacy — client-side maps with usemap are almost always better.
Syntax
<a href="/map"><img src="map.png" ismap alt=""></a>
Values
| Value |
|---|
| A boolean attribute — present or absent. |
Best practices
Accessibility
Server-side image maps are not keyboard accessible and give no information about regions. Avoid them; use a client-side <map> with labeled <area> elements, or plain links.
Frequently asked questions
What does the ismap attribute do?
Makes an image a server-side image map.