HTML Links

HTML HTML Links Active Link Color

HTML Link or Hyperlink

link or hyperlink is a connection that allows you to move from one page to another. Link may be text, image, video or any other Html element.


<a href="">Visit our Website Codingpk</a>


Visit our website codingpk

When you bring cursor on link or hyperlink hand icon appears and link become underlined.

Html link Colors

Unvisited link is underline and blue. Visited link is underline and purple. Active link is underline and red. Note:You can change color of the link.

Html Link Syntax

Starting tag for link is . Closing tag for link is .

<a href="URL">Text For Link</a>

href attribute specify destination address.

Html Image as Link

You can use image as link.


<a href=""> <img src="" alt="HTML tutorial" style="width:100px;height:100px;border:0;"> </a>


Target Attribute in Link

The target attribute define where to open the linked document. Its value can be:

  • _blank (open link document in new tab/window).
  • _self (open link document in same tab/window).
  • _parent (open link document in parent frame).
  • _top (open link document in whole body of tab/window). Note:-By default target attribute value is _self.


    <a href="" target="_blank "> Visit our Website Codingpk</a>


    Visit our Website Codingpk Html Tutorial
  • HTML Active Link Color Chapter Next »