HTML a tag

By | February 20, 2020

We have known a little before about the tags of the form of HTML in this chapter we will go into detail about the tags of HTML.<a> It reflects a hyper link.The tag has href=”” attribute in which a link to another page is given which needs to be linked.

If you want to bookmark a document, then we can come and make those bookmarks with the help of tags.This is also called hyperlink, which is used to link one page to another page.

Here is an example of how a page is linked to another page with the help of tags.

<a href="https://learnhtmlcoding.com">https://learnhtmlcoding.com</a>

Now when we come and click on this tag, it will take us to our web site learnhtmlcoding.

Example:-

<!DOCTYPE html>
<html lang="en">
<head>
     <meta charset="UTF-8">
     <title>Hyper Link</title>
</head>
<body>

<a href="https://learnhtmlcoding.com">Click on this link</a>  

</body>
</html>

Output:-

hyper link

By default in most browsers, the link looks like this.

  • A visited link is underlined and purple.
  • An active link is underlined and red.
  • An unvisited link is underlined and blue.

Browser Support:-

All modern browsers support this property of HTML.

Spread the love

Leave a Reply

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