HTML Links Hyperlinks | How to make page links in HTML

Manas BarmanManas Barman
1 min read

Ans:

  • The tag used for interlinking is the anchor tag or <a> element.

  • Links also called hyperlinks are used in websites to allow users to navigate from one web page to the other.

  • When a user clicks on a link, they are taken to the description page specified by the link.

  • Syntax:

<a href=””></a>, where href is called reference or hyperlink

E.g.

<a href=”hhtp://www.google.com/”\> Google </a>. So, Google will be displayed on the webpage and when the user clicks on google user will be redirected to the address that is given as a reference or hyperlink.

  • To open a link in a new tab, the target attribute is used

    E.g.

    <a href=”http://www.google.com/” target= “_blank”> Google </a>

  • Attributes that can be used are- target, download, title

0
Subscribe to my newsletter

Read articles from Manas Barman directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Manas Barman
Manas Barman

I am a Electrical Graduate. Also,I am a Full stack Web Developer.