HTML slt;map> name property
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:
<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
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
The property value
value | describe |
---|---|
mapname | The name of the image mapping. |
HTML and map and labels