HTML <map> name attribute
Definition and Usage
required name
attribute defines the name of the image map.
name
attribute with <img> of usemap attribute Link and create a relationship between the image and the map.
Example
Image map with clickable areas:
<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400" height="379"> <map name="workmap"> <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm"> <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm"> <area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm"> </map>
Syntax
<map name="mapname">
Attribute Value
Value | Description |
---|---|
mapname | Name of the image map. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |