Easy Tutorial
❮ Prop Textarea Defaultvalue Prop Style Overflow ❯

HTML DOM


Area Object

The Area object represents a single region of an image map (an image map is an image with clickable areas).

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


Area Object Properties

W3C: W3C Standard:

Property Description W3C
alt Sets or returns the alternate text for the area, if the image cannot be displayed. Yes
coords Sets or returns the coordinates of the clickable area in the image map. Yes
hash Sets or returns the anchor part of the URL in the area. Yes
host Sets or returns the hostname and port of the URL in the area. Yes
hostname Sets or returns the hostname part of the href attribute value. Yes
href Sets or returns the href attribute value in the area. Yes
noHref Sets or returns the nohref attribute value of the area. Yes
pathname Sets or returns the pathname part of the href attribute value in the area. Yes
port Sets or returns the port part of the href attribute value in the area. Yes
protocol Sets or returns the protocol part of the href attribute value in the area. Yes
search Sets or returns the query string part of the href attribute value in the area. Yes
shape Sets or returns the shape attribute value of the area. Yes
target Sets or returns the target attribute value of the area. Yes

Standard Attributes and Events

The Area object also supports standard attributes and events.

❮ Prop Textarea Defaultvalue Prop Style Overflow ❯