Links in HTML allow users to navigate from one page to another.
The <a> tag (anchor tag) is used to create links.
<a href="https://learn2kode.com">Visit Learn2Kode</a>
| Attribute | Purpose |
|---|---|
href |
URL of the page to open |
target |
Where to open the link (_blank, _self, etc.) |
title |
Tooltip text when hovering |
download |
Downloads the linked file |
<a href="https://learn2kode.com" target="_blank" title="Go to Learn2Kode">
Visit Learn2Kode
</a>