HTML5 Tutorials & More

<area> Tag

The <area> tag defines an area inside an imagemap.

Supported In HTML4: Yes

Supported In HTML5: Yes

HTML4 vs HTML5 Differences:

Attributes

Title Values Description HTML4 Support HTML5 Support
alt text Specifies an alternate text for the area. Required if the href attribute is present. Use ONLY if the href attribute is present. Yes Yes
coords if shape="rect" then coords="left,top,right,bottom" if shape="circ" then coords="centerx,centery,radius" if shape="poly" then coords="x1,y1,x2,y2,..,xn,yn" Specifies the coordinates for the clickable area No No
href URL Specifies the target URL of the area No No
hreflang language_code Specifies the base language of the target URL. Use only if the href attribute is present. No No
nohref nohref Not supported in HTML 5. No No
ping URL Space separated list of URL's that gets notified when a user follows the hyperlink. Use only if the href attribute is present. No No
rel alternate archives author bookmark contact external first help icon index last license next nofollow noreferrer pingback prefetch prev search stylesheet sidebar tag up Specifies the relationship between the current document and the target URL. Use only if the href attribute is present. No No
shape rect rectangle circ circle poly polygon Defines the shape of the area No No
target _blank _parent _self _top Where to open the target URL. _blank - the target URL will open in a new window _self - the target URL will open in the same frame as it was clicked _parent - the target URL will open in the parent frameset _top - the target URL will open in the full body of the window No No
type mime_type Specifies the MIME (Multipurpose Internet Mail Extensions) type of the target URL. Use only if the href attribute is present No No
No No

Standard Attributes

All standard attributes are supported.

Event Attributes

All event attributes are supported.

HTML5 Tags