HTML A Tag || A Tag in HTML
×

HTML A <a> Tag

2 1686

The HTML A <a> element, called anchor element, it used to create a hyperlink to another webpage or another location within the same webpage.

The hyperlink created by an anchor element is applied to the text, image, or other HTML content which is nested between the opening and closing <a> tags.

There are three types of link:

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

Program:

<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>a tag</title>
</head>
<body>
<h1> a tag </h1>
<a href="https://www.codingtag.com">Visit codingtag.com!</a>
</body>
</html>



Best WordPress Hosting


Share:


Leave a Reply


Comments
  1. Pavan Singh Jan 18, 2022

    This was very easy to understand. Great Job sir

  2. Rahul Rao Jan 18, 2022

    Nicely explained