A
The a element is a hyperlink (hypertext anchor).
SYNTAX
HTML
<a attribute-name="attribute-value"></a>
ATTRIBUTES
NAME | VALUE | DESCRIPTION |
---|---|---|
download | string | download the hyperlink destination |
href | URI | reference to the hyperlink destination |
hreflang | language tag | language of the hyperlink destination |
ping | list of URIs | list of URLs to notify if a user follows the hyperlink |
referrerpolicy | empty | no-referrer | no-referrer-when-downgrade | origin | origin-when-cross-origin | same-origin | strict-origin | strict-origin-when-cross-origin | unsafe-url | referrer policy for fetches initiated by the element |
rel | tokens | relationship between the hyperlink document and the hyperlink destination |
target | browsing-context name or keyword | browsing context for the hyperlink destination |
type | MIME type | type 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);
}