Skip to content
Justice Tech School

Link Targets and Types

target="_blank" opens the link in a new tab. Always add rel="noopener noreferrer" with it so the new page cannot control yours.

A link can also start an email (mailto:), a phone call (tel:) or download a file (the download attribute).

Example
<p><a href="https://example.com" target="_blank" rel="noopener noreferrer">New tab</a></p>
<p><a href="mailto:hello@example.com">Send an email</a></p>
<p><a href="tel:+2348000000000">Call us</a></p>

Exercise

Make the link open in a new tab.

<a href="/" ="_blank">Home</a>

Quiz Test

Which prefix starts an email from a link?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.