Links can be found on almost every web page. Users can navigate from page to page by clicking on links.
Hyperlinks are HTML links. You can jump to another paper by clicking on a link. The mouse arrow will turn into a small hand when you move the mouse over a link.
The HTML tag defines a hyperlink. It has the following syntax:
<a href="your url">Some text</a>
Example :
This example shows how to create a link to readytocode.net:
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
<p><a href="https://readytocode.net//">Visit Our Blog</a></p>
</body>
</html>
In all browsers, links will show as follows by default:
The linked page will open in the current browser window by default. To modify this, you'll need to adjust the link's target. The target attribute defines where the linked page should be opened.
One of the following values can be assigned to the target attribute:
Example :
To open the referenced document in a new browser window or tab, use target="_blank":
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
<p><a target="_BLANK" href="https://readytocode.net//">Visit Our Blog</a></p>
</body>
</html>