This Blog is for HTML Tutorials.

HTML Logo

HTML Links

Links are found in nearly all web pages. Links allow users to click their way from page to page. Hyperlinks are defined with the HTML <a> tag.

Syntax:


<a href="url">Click Here</a>

Where “URL” represent the link of website & “Click Here” represent the visible part.



HTML Links - The target Attribute


The target attribute specifies where to open the linked document. It can only have one of the following values: 


  • _blank - Opens the linked document in a new window or tab
  • _self - Opens the linked document in the same window/tab as it was clicked (this is default)
  • _parent - Opens the linked document in the parent frame
  • _top - Opens the linked document in the full body of the window

Example -


<a href="https://tutorialspointhtml.blogspot.com/" target="_blank">Visit us</a>




Post a Comment

0 Comments