How to create a hyperlink in Html

How to add link on a text in html

A hyperlink is an important part for any website’s user to communicate with the website’s pages. If you are finding the best solution to create a hyperlink in HTML page so you are at the right place.

To create a hyperlink use an <a> tag in html, which tags are used to define the links. The href is the most important attribute in <a> element, which indicates the link’s destination.

By default, the linked page will be displayed in the current browser window. A <a> tag has may attribute to specify another target for the link. See the list of attribute:-

  • href=””
  • target=”_blank”
  • target=”_self”
  • target=”_top”
  • target=”_parent”

How to use <a> tag

Add a hyperlink in html with the help of <a href=””> ..link text.. </a>

For Example:

 <a href="https://www.domain.com"> Visit Website </a> 

We can use other attributes with <a> tag

For Example:

<a href="https://www.domain.com" target= "_blank"> Visit Website </a>

One thought on “How to add link on a text in html

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to Get Good Website? Please Fill the Form
Quick Enquiry