a

The a element is a hyperlink (hypertext anchor).

Attributes

<a attribute-name="attribute-value"></a>
Name Value Description
download string Download the hyperlink destination
href URI Reference to the hyperlink destination
hreflang language tag Language of the hyperlink destination
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

Global

CSS

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

Example | download

Example | href

Example | hreflang

Example | rel

Example | target

Example | type

Example | CSS

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1