Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementmap
Purposeclient-side image map
DescriptionThis element is used to define a client-side imagemap. The map element contains area elements that define "hotspots" of the image.
Start tagRequired <map>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIED
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#REQUIRED
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
name CDATA #IMPLIEDfor reference by usemap
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDstyle sheet data
title CDATA #IMPLIEDtext used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content(( p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | menu | dir | pre | hr | blockquote | address | center | noframes | isindex | fieldset | table | form | noscript | ins | del | script )+ | area +)
End tagRequired </map>
Referenced in a abbr acronym address applet b bdo big blockquote body button caption center cite code dd del dfn div dt em fieldset font form h1 h2 h3 h4 h5 h6 i iframe ins kbd label legend li noframes noscript object p q s samp small span strike strong sub sup td th tt u var
Example
SourceAppearance
<p><map name="mymap" id="mymap">
<area shape="rect" coords="0,0,100,50" href="http://www.december.com/html/"
alt="The HTML Station" /></map> <img src="../../images/icon.gif"
usemap="#mymap" width="100" height="100" ismap="ismap" alt="imagemap" /></p>

The HTML Station imagemap

search Search · star Market
2023-06-19 · John December · Terms © johndecember.com