<a> is HTML Tag
anchor


How the Anchor Tag Works.

Anchor tag is used to link a text.So that we can click on that text and go from there to another page. The <a> element, or anchor element, it used to create a hyperlink to another webpage or another location within the same webpage. With the use of Anchor Tag, we can not only link to text,With the help of Anchor Tag, we can keep links on any image, section or content. 

  • The <a> tag defines an anchor. An anchor can be used in two ways:
  • To create a link to another document, by using the href attribute
  • To create a bookmark inside a document, by using the name attribute
  • The a element is usually referred to as a link or a hyperlink.


Code Example :

<a href="https://theinfotechweb.blogspot.com">Click here!</a>

Output :

Attributes of anchor :

Browser Support :

crome mozila opera edge ei safari