The anchor tag (<a>) is used to create hyperlinks that connect one webpage to another page, section, file, or website.
<a href="URL">Link Text</a>
<a href="https://www.google.com">Go to Google</a>
<a href="about.html">About Us</a>
<a href="#contact">Go to Contact</a>
<h2 id="contact">Contact Section</h2>
<a href="mailto:info@example.com">Send Email</a>
<a href="tel:+911234567890">Call Us</a>
<a href="https://example.com" target="_blank">Open in new tab</a>
| Attribute | Use |
|---|---|
| href | Destination URL |
| target | Open location |
| title | Tooltip |
| download | Download file |