<map name="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
<map> HTML Tag
What does <map name=""> do?
Assigns a name to an image map.

Code Example

<img src="/wp-content/uploads/shapes.png" width="487" height="271" alt="Shapes" usemap="#shapesmap">

<map name="shapesmap">
  <area shape="rect" coords="29,32,230,215" href="square.html" alt="Square">
  <area shape="circle" coords="360,130,100" href="circle.html" alt="Circle">
Shapes SquareCircle

The name attribute of the <map> element assigns a name to an image map. The name must match the usemap attribute of the associated <img> element. For more information on using image maps, see the <map> element page.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for name