agyanadda@gmail.com

HTML Links

HTML Text & Links 1 min read Updated Nov 30, 2026 Topic 14 of 33

Example

Example — Different kinds of links HTML
<p><a href="https://agyanadda.com">Same tab link</a></p>
<p><a href="https://agyanadda.com/tools" target="_blank" rel="noopener">Open in a new tab</a></p>
<p><a href="mailto:agyanadda@gmail.com">Send an email</a></p>
<p><a href="tel:+919999999999">Call us</a></p>
<p><a href="#contact">Jump to contact section</a></p>

<h3 id="contact">Contact</h3>
<p>You jumped here using an id link.</p>

rel="noopener" is recommended with target="_blank" for security.

Try it Now »

Test Yourself With Exercises

Exercise 1 Multiple Choice

Which attribute opens a link in a new tab?

Exercise 2 Fill in the Blank

A link that opens the email app starts with ___:

Exercise 3 True / False

href="#about" jumps to the element with id="about".

Frequently Asked Questions

It is common for links to other websites, so visitors do not lose your page. Add rel="noopener" with it.