/    /  HTML Anchor

HTML Anchor

 

The HTML anchor tag provides a hyperlink that links one page to another page or one website another website also. It can provide hyperlinks to other web pages as well as files, locations, or any URL. The “href” attribute is the important attribute of the HTML a tag, and which links to the destination page or URL.

 

href attribute of HTML anchor tag:

 

Example:

 

<!DOCTYPE html>
<html>
<head>
     <title></title>
</head>
<body>
<p>Click on <a href="https://www.i2tutorials.com/"> this-link </a>to go on home page of i2tutorials</p>
</body>
</html>

 

OUTPUT:

 

HTML Anchor