English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML: <img> ismap attribute

The ismap attribute is a boolean attribute. When the server-side image map is clicked, the coordinates of the click will be sent to the server as a URL query string.

 HTML <img> tag

Online Examples

Click on the image, the coordinates of the click will be sent to the server as a URL query string:

!DOCTYPE html
<html>
<head>
<title>HTML:<img> ismap 属性 - 基础教程网 oldtoolbag.com</title>
<body>
<a href="action_page.php">
  <img src="/static/images/logo.png" alt="w"3codebox.com" width="100" height="132" ismap"
</a>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the ismap attribute.

Definition and Usage

The ismap attribute is a boolean attribute.
If present, it specifies that the image is part of a server-side image map (an image map is an image with clickable areas).
When clicking on a server-side image map, the coordinates of the click will be sent to the server as a URL query string.
Note: ismap attribute is allowed only when the <img> element is a descendant of an <a> element with a valid href attribute.

HTML 4.01 With HTML5Differences

None.

Differences between HTML and XHTML

In XHTML, attribute shorthand is prohibited. The ismap attribute must be defined as <img ismap="ismap" in XHTML. />。

Syntax

<img ismap>
 HTML <img> tag