Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML img ismap attribute

HTML The ismap attribute

HTML img Tag Reference HTML tag

Example

A server-side image map:

runoob.com

Try it »


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 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 when the element is a descendant of an 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 .


Syntax


HTML img Tag Reference HTML tag