Category:HTML Tags


This tag is used to add hyperlinks to your web page.The link tag <a> is used both for linking to external web pages and for linking to individual HTML documents on the same website. This link requires one attribute: * href - Tells where the browser should navigate to.


External Website

Using <a> for linking to an external web page.

<a href="https://code.org/">Visit Code.org!</a>

Page on the Same Website

Using <a> for linking individual HTML documents on the same website

<a href="books.html">Books</a>




  • The link text is the part that will be visible to the reader.
  • A link does not have to be text. A link can be an image or any other HTML element.

Additional Information

For more information, see http://www.w3schools.com/tags/tag_a.asp

Found a bug in the documentation? Let us know at documentation@code.org