Open In App

HTML ismap Attribute

Last Updated : 29 Aug, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The HTML ismap attribute is a boolean attribute. When exists, it specifies that the image is a component element of a server-side image-map (an image-map is a picture with clickable areas). When clicking on a server-side image-map, the press coordinates square measure sent to the server as a URL query string

Applies to:

Syntax:

<img ismap>

Example: In this example, we display a “GeeksforGeeks” heading with an image. The image uses the ismap attribute, enabling clickable regions when used with a server-side image map in an <a> tag.

HTML
<!DOCTYPE html>
<html>

<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
        <h2>HTML ismap Attribute</h2>
        <a href="#">
            <img src="img3.png" alt="GFG.com" width="400" height="150" ismap>
        </a>
    </center>
</body>

</html>

Output:

Supported Browsers:

The browser supported by HTML max Attribute are listed below:


Next Article

Similar Reads