Version-//W3C//DTD XHTML 1.0 Strict//EN
Elementarea
Purposeclient-side image map area
DescriptionThe AREA element is used in the map element to define the region on an imagemap which is a hypertext link. The area that is sensitive is defined in terms of X, Y pixel coordinates. Use a graphics program to find these.
Start tagRequired <area />
Attributes
NameTypeDefaultComment
accesskey CDATA #IMPLIEDa single character as per XML specification which defines a character as an atomic unit of text as specified by ISO/IEC 10646 [ISO/IEC 10646] (see also [ISO/IEC 10646-2000]); accessibility key character
alt CDATA #REQUIREDtext used for titles; short description
class CDATA #IMPLIEDspace-separated list of classes
coords CDATA #IMPLIEDcomma-separated list of lengths
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
href CDATA #IMPLIEDUniform Resource Identifier as per RFC2396; a Uniform Resource Locator (URL) is a URI; URI for linked resource
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
nohref( nohref )#IMPLIEDthis region has no action
onblur CDATA #IMPLIEDscript expression; the element lost the focus
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onfocus CDATA #IMPLIEDscript expression; the element got the focus
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
shape( rect | circle | poly | default )"rect"shape; controls interpretation of coords
style CDATA #IMPLIEDassociated style info; style sheet data
tabindex CDATA #IMPLIEDone or more digits; position in tabbing order
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
ContentEMPTY
End tagForbidden
Referenced in map
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