A
The a element defines a hyperlink.
SYNTAX
<a attribute-name="attribute-value"></a>
NAME | VALUE | INITIAL | DESCRIPTION |
---|---|---|---|
href | URL | none | The location of the referenced object, expressed as a URL reference. |
target | _self | _parent | _top | _blank | <XML-Name> | _self | Specifies the name of the browsing context into which a document is to be opened when the link is activated. |
download | any value (if non-empty, value represents a suggested file name) | none | Whether to download the resource instead of navigating to it, and its file name if so. |
ping | space-separated valid non-empty URL tokens | none | URLs to ping |
rel | space-separated keyword tokens | none | Relationship between the location in the document containing the hyperlink and the destination resource |
hreflang | A BCP 47 language tag string | none | Language of the linked resource |
type | A MIME type string | none | Hint for the type of the referenced resource |
referrerpolicy | A referrer policy string | none | Referrer policy for fetches initiated by the element |