HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

area

Description

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

Syntax

HTML

<area attribute-name="attribute-value"></area>

Attributes

Global

NameValueDescription
altnormal character datafallback content for the image map
coordscircle | polygon | rectanglecoordinates for the shape on the image map
downloadstringdownload the hyperlink destination
hrefURIreference to the hyperlink destination
hreflanglanguage taglanguage of the hyperlink destination
pinglist of URIslist of URLs to notify if a user follows the hyperlink
referrerpolicyno-referrerSpecifies that no referrer information is to be sent along with requests to any origin.
no-referrer-when-downgradeSends a request’s full referrerURL stripped for use as a referrer for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL.
originSpecifies that only the ASCII serialization of the request’s referrerURL is sent as referrer information when making both same-origin-referrer requests and cross-origin-referrer requests.
origin-when-cross-originSpecifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL is sent as referrer information when making cross-origin-referrer requests.
same-originSpecifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests.
strict-originSends the ASCII serialization of the origin of the referrerURL for requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL.
strict-origin-when-cross-origin | emptySpecifies that a request’s full referrerURL is sent as referrer information when making same-origin-referrer requests, and only the ASCII serialization of the origin of the request’s referrerURL when making cross-origin-referrer requests: whose referrerURL and current URL are both potentially trustworthy URLs, or whose referrerURL is a non-potentially trustworthy URL.
unsafe-urlSpecifies that a request’s full referrerURL is sent along for both same-origin-referrer requests and cross-origin-referrer requests.
reltokensrelationship between the hyperlink document and the hyperlink destination
shapecircle | polygon | rectangle | defaultshape of the area for the hyperlink on the image map
targetbrowsing-context name or keywordbrowsing context for the hyperlink destination
typeMIME typetype of the hyperlink destination

CSS

area
{
    display: inline;
}

Examples

1 · alt

2 · coords

3 · download

4 · href

5 · hreflang

6 · ping

7 · referrerpolicy

8 · rel

9 · shape

10 · target

11 · type

12 · CSS