HTML 5: The Markup Language (ARIA Edition)

areaimage-map hyperlink # T

The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.

Content model #

area = empty & area.attrs

Attribute model #

Element-specific attributes #

alt = normal-character-data
The fallback content for the image map.
href = uri
A URL that provides the destination of the hyperlink for this area.
target = browsing-context-name-or-keyword
A name or keyword giving a browsing context for UAs to use when following the hyperlink for this area.
ping = uris
A list of URLs to notify if a user follows the hyperlink for this area.
rel = tokens
A list of tokens that specify the relationship between the document containing the area and the destination indicated by the area.
media = mediaquery
The media for which the destination of the hyperlink was designed.
hreflang = langcode
The language of the destination of the hyperlink.
type = mimetype
The MIME type of the destination of the hyperlink.
shape.rect = "rect" & coords.rect = d:rectangle
Specifies that the shape of the area of this hyperlink on the image map is a rectangle.
shape.circle = "circle" & coords.circle = d:circle
Specifies that the shape of the area of this hyperlink on the image map is a circle.
shape.poly = "poly" & coords.poly = d:polyline
Specifies that the shape of the area of this hyperlink on the image map is a polygon.
shape.default = "default"
Specifies that the shape of the area of this hyperlink on the image map is a rectangle that exactly covers the entire image.

Assertions #

Tag omission #

The area element is a void element. An area element must have a start tag but must not have an end tag.

Permitted contexts #

Typical default display properties #

area {
display: none; }