Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The <map> HTML element is used with <area> elements to define an image map (a clickable link area).
This element includes the global attributes.
nameThe name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be equal to the value of the name attribute of another <map> element in the same document. If the id attribute is also specified, both attributes must have the same value.
Click the left-hand parrot for JavaScript, or the right-hand parrot for CSS.
| Flow content, phrasing content, palpable content. |
| Any transparent element. |
| None, both the starting and ending tag are mandatory. |
| Any element that accepts phrasing content. |
| No corresponding role |
| No role permitted |
| HTMLMapElement |
| HTML # the-map-element |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 24, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.