You are here : htmlHTML 5a

<a> - HTML 5

The <a> tag defines a hyperlink, which is used to link from one page to another.

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

By default, links will appear as follows in all browsers:

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red


Syntax

<a href="...url...">LINK NAME</a>


Example

<a href='http://wikidev.in'>Click here to go to Wikidev</a>


Output / Return Value


Limitations


Alternatives / See Also


Reference