HTML element: <map>
Attributes
Attribute |
Value(s) |
Description |
Availability |
|---|---|---|---|
id |
text |
Required. This attribute specifies a unique name for the image map. The value must match the corresponding value for the usemap attribute in the <img> element in which it is referenced. |
4.6 or later |
name |
text |
This attribute specifies a unique name for the image map. The value must match the corresponding value for the usemap attribute in the <img> element in which it is referenced. |
4.0 or later |
Common attributes
The <map> element supports the class, dir, id, lang, style, and title attributes.
For more information, see Common attributes.
Event attributes
The <map> element supports the onblur, onclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.
For more information, see HTML event attributes.