Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML object usemap Attribute

HTML The usemap attribute

HTML object Tag Reference HTML tag

Example

An object that uses an image-map element:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers except Chrome and Safari support the usemap attribute.


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 the associated with the name attribute of the element, creating a relationship between the object and the map.


Differences between HTML 4.01 and HTML5

none.


Syntax

Attribute values

Value Description
#mapname A hash sign ("#") followed by the name of the map element to use.

HTML object Tag Reference HTML tag