HTML <img> ismap Attribute

Definition and Usage

ismap This attribute defines the image as a server-side image map, and it is a boolean attribute.

An image map is an image with clickable areas.

When clicking on a server-side image map, the click coordinates are sent to the server in the form of a URL query string.

Note:ismap is allowed only when the <img> element is a descendant of an <a> element with a valid href attribute ismap Properties.

See Also:

HTML Reference Manual:The HTML <map> tag

HTML Reference Manual:HTML <area> Tag

Example

Server-side Image Mapping:

<a href="/action_page.php">
  <img src="w3html.gif" alt="codew3c.com" ismap>
</a>

Try It Yourself

Explanation

When the user clicks on a location on an ismap image, the browser automatically sends the x, y position of the mouse (relative to the top left corner of the image) to the server. Special server-side software (in this case, the demo_form.asp program) can respond based on these coordinates.

Syntax

<img ismap>

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support