Latest web development tutorials
 

HTML <object> usemap Attribute

< HTML <object> tag

Example

An <object> element using an image map:

<object data="planets.gif" width="145" height="126" usemap="#planetmap"></object>
Try it Yourself »

Definition and Usage

The usemap attribute specifies the name of an image-map to use with the object.

An image-map is an image with clickable areas.

The usemap attribute is associated with a <map> element's name attribute, and creates a relationship between the object and the map.


Browser Support

Attribute
usemap Not supported Yes Yes Not supported Not supported

Differences Between HTML 4.01 and HTML5

NONE.


Syntax

<object usemap="#mapname">

Attribute Values

Value Description
#mapname A hash character ("#") plus the name of the map element to use

< HTML <object> tag