<a href="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The A element defines an anchor.

The href attribute of the A element create a link to another document.


<a href="index.html">linked text</a>

Attribute Value Explanation
href=" " URL the target URL of the link

Example


<p><a href="https://www.tagindex.net/">TAG index</a></p>

<p><a href="../../index.html"><img src="banner.gif" alt="TAG index"></a></p>

Output

TAG index

TAG index