W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<MAP>...</MAP>

Description

This element is a container for the map that is used in a client-side image map. Inside this element you put AREA elements to identify the active positions in the map.

DTD

<!ELEMENT MAP - - ((%block;)+ | AREA+) -- client-side image map -->
<!ATTLIST MAP
  %attrs;                              -- %coreattrs, %i18n, %events --
  name        CDATA          #REQUIRED -- for reference by usemap --
  >
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Core attributes: class id style title
Internationalization attributes: dir lang
Events: onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup

W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
NAME
The name that is used in the IMG element to refer to the map. The value is case-sensitive.

Examples

Source
<MAP name="map">
<AREA shape="circle" coords="30,24,21" href="MAP1.html">
<AREA shape="poly" coords="77,44,119,44,98,3,77,44" href="MAP2.html">
<AREA shape="rect" coords="145,4,187,44" href="MAP3.html">
</MAP>
<DIV align="center">
<IMG src="AREA1.gif" usemap="#map" border="0" width="200" height="50" alt="Imagemap">
</DIV>
 
Result
Imagemap
Statistics