References

Collection of references for web development.

HTML map tag

Description

The HTML <map> element represents an image map, used in conjunction with <area> to define clickable regions.

Attributes

Attribute Value Description
name string Specifies the name of the element.

Example

<map name="mycustommap">
	<area shape="rect" coords="0,0,100,100" href="#" alt="Rect Link">
	<area shape="circle" coords="150,50,50" href="#" alt="Circle Link">
</map>
<img usemap="#mycustommap" src="https://codeshack.io/web/img/hotspot.png" width="200" height="100" alt="An image using the map tag.">