Easy Tutorial
❮ Att Details Open Tag Code ❯

HTML <img> ismap Attribute

HTML <img> Tag

Example

A server-side image map:


Browser Support

All major browsers support the ismap attribute.


Definition and Usage

The ismap attribute is a boolean attribute.

The ismap attribute defines the image as a server-side image map (an image map is an image with clickable areas).

When a server-side image map is clicked, the click coordinates are sent to the server as a URL query string.

Note: The ismap attribute is only allowed if 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

❮ Att Details Open Tag Code ❯