Html links

Without link webpages are incomplete, if we go from one page to another page on the webpage we need to create hyperlinks. You can create hyperlinks using anchor tag <a href=”url”> TEXT , Image </a>.

// Link tag
<a href="">Visit our HTML tutorial</a>

Visit our Html tutorial.

A stand for Anchor. It is a start tag and href attribute define in between.
Href stand for Hypertext Reference. It’s specifies the page address either relative (index.html) or absolute ( path.

How we know anchor tag working fine?

If you do everything right way, you can move the cursor over the link the mouse arrow converter into hand and text also underline. The colors of the link also change, colors are also changing unvisited link is blue, visited link is purple and active link is red.

Target Attribute:

Target attribute used for where linked document is loaded.

<a href="" target=”_blank”>Visit our HTML tutorial</a>

Visit our Html tutorial.

  • Target ValueDescription
  • _blankOpen in a new window or tab
  • _selfOpen in the same frame as it was clicked (this is default)
  • _parentOpens in the parent frame
  • _topOpens in the full body of the window
  • framenameOpens the linked document in a named frame

Leave a Comment.