Easy Tutorial
❮ Att Th Rowspan Att Input Align ❯

HTML <img> usemap Attribute

HTML <img> Tag

Example

An image map with clickable areas:


Browser Support

All major browsers support the usemap attribute.


Definition and Usage

The usemap attribute defines an image as a client-side image map (an image map is an image with clickable areas).

The usemap attribute is associated with the name or id attribute of the <map> element to establish a relationship between <img> and <map>.

Note: The usemap attribute is only allowed when the <img> element is not a descendant of an <a> or <button> element.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
#mapname A hash character ("#") plus the name or id of the <map> element to be used.

❮ Att Th Rowspan Att Input Align ❯