HTML <object> usemapAttribute
Examples
An <object> element using an image map:
<object data="planets.gif" width="145" height="126" usemap="#planetmap"></object>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the usemap attribute, except Chrome and Safari.
Definition and Usage
The usemap attribute specifies the name of an image map to be used with the object.
An image map is an image with clickable areas.
The usemap attribute is associated with<map>the name attribute of the element, creating a relationship between the object and the map.
Differences between HTML 4.01 and HTML5
None.
Syntax
<object usemap="#mapname">
Attribute Values
| Value | Description |
|---|---|
| #mapname | A hash sign ("#") plus the name of the map element to be used. |
HTML <object> Tag Other Extensions