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

HTML img usemap attribute

HTML The usemap attribute

HTML img Tag Reference HTML tag

Example

An image map with clickable areas:

Planets

  Sun

  Mercury

  Venus

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the usemap attribute.


Definition and Usage

The usemap attribute defines the 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 element, to establish The difference between a relationship between them.

**Note:** The ismap attribute is only allowed when the When the element does not belong to the or