HTML slt;map> name property

HTML map name property HTML and map and labels

The value of the name property of the label is the name used by the image map, please refer to the following example:

Image map with clickable area:

<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">

<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.gif">
<area shape="circle" coords="90,58,3" alt="Mercury" href="merglobe.gif">
<area shape="circle" coords="124,58,8" alt="Venus" href="venglobe.gif">
</map>

Try it out . . .

Browser support

HTML map name property HTML map name property HTML map name property HTML map name property HTML map name property

The name property is supported by all major browsers.


Definitions and usages

The name property is required to specify the name of the image map.

The name property is associated with the usemap property of the label to create a relationship between the image and the map.


The difference between HTML 4.01 and HTML5

No.


Grammar

<map name="mapname">

The property value

value describe
mapname The name of the image mapping.


HTML map name property HTML and map and labels