HTML
To achieve the goal of defining an image map (clickable link area), the label can be used with the element, 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
Most browsers currently support the
Label definition and instructions for use
The usemap property in the slt;map> can refer to the id or name property in the slt;map?gt; depending on the we should add the id and name
The area element is always nested inside the map element. The area element defines the area in the image map.
Tip: To complete the image map, you need three labels: the label, and the label.
The difference between HTML 4.01 and HTML5
Note: In HTML5, if the id property is specified in the
The difference between HTML and XHTML
In XHTML, the name property is discarded and replaced with the id property.
Property
属性 | 值 | 描述 |
---|---|---|
name | mapname | 必需。为 image-map 规定的名称。 |
Global properties
The event property