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

a

Description

The a element for HTML is a hyperlink (hypertext anchor).

Syntax

HTML

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

Attributes

Global

NameValueDescription
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
targetbrowsing-context name or keywordbrowsing context for the hyperlink destination
typeMIME typetype of the hyperlink destination

CSS

a:link, a:visited
{
    color: (internal value);
    cursor: auto;
    text-decoration: underline;
}
a:link:active, a:visited:active
{
    color: (internal value);
}

Examples

1 · download

2 · href

3 · hreflang

4 · ping

5 · referrerpolicy

6 · rel

7 · target

8 · type

9 · CSS

10 · JS