<area>


HTML DOM Area object


Area object

The Area object represents an area of an image map (an image map refers to an image with a clickable area)

An Area object is created each time the <area> tag appears in an HTML document.


Area object attributes

W3C: W3C Standard:

AttributeDescriptionW3C
altSets or returns alt text when the browser cannot display an area.Yes
coordsSets or returns the coordinates of a clickable area in the image map.Yes
hashSets or returns the anchor portion of a URL in a zone.Yes
hostSets or returns the host name and port of a URL in a zone.Yes
hostnameSets or returns the href attribute worth the host section.Yes
hrefSets or returns the value of the href attribute in a rangeYes
noHrefSets or returns the value of the nohref attribute for a range.Yes
pathnameSets or returns the pathname portion of the value of a region href property.Yes
portSets or returns the port portion of the value of a zone href property.Yes
protocolSets or returns the protocol portion of the value of a region href property.Yes
searchSets or returns the part of the query string for the value of a range href property.Yes
shapeSets or returns the value of a regional shape property.Yes
targetSets or returns the value of a regional target property.Yes

Standard Properties and Events

Area objects also support standard properties and events .