HTML <img> ismapAttribute

HTML img 标签参考手册HTML <img> Tag

Examples

A server-side image map:

<a href="form_action.php.html">
<img src="logo.png.html" alt="example.com" width="336" height="69" ismap>
</a>

Try it yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the ismap attribute.


Definition and Usage

The ismap attribute is a boolean attribute.

The ismap attribute defines an image as a server-side image map (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 as a URL query string.

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


Differences between HTML 4.01 and HTML5

None.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the ismap attribute must be defined as <img ismap="ismap" />.


Syntax

<img ismap>


HTML img 标签参考手册HTML <img> Tag Other extensions