Creating Hyperlinks
Links are created using the (anchor) tag. The href attribute specifies the destination URL.
Links can point to other pages, sections within the same page, email addresses, or files to download.
<!-- External link -->
<a href="https://www.example.com">Visit Example</a>
<!-- Link to another page -->
<a href="about.html">About Us</a>
<!-- Link to section -->
<a href="#section1">Go to Section 1</a>
<!-- Email link -->
<a href="mailto:info@example.com">Email Us</a>
<!-- Open in new tab -->
<a href="https://www.example.com" target="_blank">Open in New Tab</a>
- href - Specifies the link destination
- target="_blank" - Opens link in new tab
- title - Adds tooltip text
- download - Makes link downloadable
Try Links
<h2>Useful Links</h2>
<p><a href="https://www.google.com" target="_blank">Search on Google</a></p>
<p><a href="#bottom">Jump to Bottom</a></p>
<p><a href="mailto:hello@example.com">Send us an email</a></p>
<hr>
<p id="bottom">You've reached the bottom!</p>
Note: Always provide descriptive link text. Avoid 'click here' - use meaningful descriptions instead.