HTML ismap Attribute
Definition and Usage
The ismap
attribute is a boolean attribute.
When 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 click coordinates are sent to the server as a URL query string.
With the help of these click coordinates, the server returns the desired output.
Note: The ismap
attribute is allowed only if the <img>
element is a descendant of an <a>
element with a valid href
attribute.
Applies to
The ismap
attribute can be used on the following element:
Example
Img Example
A server-side image map:
<a href="/action_page.php">
<img src="pi.jpg" alt="PI.com" ismap>
</a>
<img src="pi.jpg" alt="PI.com" ismap>
</a>
Browser Support
Attribute | |||||
---|---|---|---|---|---|
ismap | Yes | Yes | Yes | Yes | Yes |
Comments
Post a Comment