Version-//W3C//DTD XHTML 1.0 Strict//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
nameNMTOKEN#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 | pre | hr | blockquote | address | fieldset | table | form | noscript | ins | del | script )+ | area +)
End tagRequired </map>
Referenced in a abbr acronym address b bdo big button caption cite code dd del dfn div dt em fieldset h1 h2 h3 h4 h5 h6 i ins kbd label legend li object p pre q samp small span strong sub sup td th tt 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

Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.