|
Defines a hyperlink
The < a > element supports the following attributes, in addition to global attributes common to all HTML elements.
Attribute | Value | Description |
download | filename | Causes the browser to treat the linked URL as a download. |
href | URL | Specifies the URL that the hyperlink points to. |
hreflang | language_code | Specifies the language of the linked document. |
media | media_query | Specifies what media/device the linked document is optimized for |
ping | url_list | Specifies a space-separated list of URLs, typically used for tracking. |
referrerpolicy | no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin-when-cross-origin, unsafe-url | Specifies which referrer information to send with the link. |
rel | alternate, author, bookmark, external, help, license, next, nofollow, noreferrer, noopener, prev, search, tag | Specifies the relationship between the current document and the linked document. |
target | _blank, _parent, _self, _top | Specifies where to open the linked document. |
type | media_type | Specifies the media type of the linked document |
|