HTML map tag

HTML map tag is used to give each image area a link to open on click.

Each area contains a link and you can open the link by clicking on that particular area. A mapping can be done by using <map> tag. This uses the image for mapping.

The name attribute of map tag and the usemap attribute of image tag with map name with # is used to make the relationship between image and mapping.


nature image html map


Attribute of HTML map tag

Sr. No.Attribute NameDescription
1nameThis defines the name of the image map.

  • The possible value is mapname

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.