<MAP>...</MAP>

W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
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 © World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). 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>
<CENTER><IMG src="AREA1.gif" usemap="#map" border="0" width="200" height="50" alt="Imagemap"></CENTER>
 
Result
Imagemap


Statistics