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

HTML map name Attribute

HTML name attribute

HTML map 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 name attribute.


Definition and Usage

The name attribute is required and specifies the name of the image-map.

The name property is associated with the usemap attribute of the tag, to create the relationship between the image and the map.


Differences between HTML 4.01 and HTML5

none.


Syntax

Attribute values

Value Description
mapname The name of the image-map.

HTML map Tag Reference HTML tag