The best HTML <map> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Differences between HTML 4.01 and HTML5,Differences between HTML and XHTML,Attributes,Global Properties,Event Properties,
With clickable image map area:
Most browsers support <map> tag.
<Map> tag for client-side image maps. Image refers to an image mapping with clickable areas.
<Img> attributes can be referenced in usemap <map> The id or name attribute (depending on the browser), so we should at the same time to <map> add id and name attribute.
area element is always nested inside the map element. area elements define the image map area.
Note: In HTML5, if the id attribute is specified in the <map> tag, then you must also specify the name attribute.
In XHTML, name attribute is deprecated, use the id attribute to replace it.
属性 | 值 | 描述 |
---|---|---|
name | mapname | 必需。为 image-map 规定的名称。 |
<map> tag supports the global attributes, view complete the property sheet HTML Global Attributes .
<map> tag supports all HTML event attributes .