Skip to content

This is one of our old lessons! Visit the Path page to see all of our latest courses.

Email and phone links – HTML

Summary

Email link:

<a href="mailto:john@example.com">john@example.com</a>

Phone link:

<a href="tel:+15555551234">(555) 555-1234</a>

Details

To create an email link, use an anchor tag with the phrase mailto: at the beginning of the href attribute. When a user clicks the link, it’ll open up a new message window in their default mail client.

To create a phone link, use an anchor tag with the phrase tel: at the beginning of the value for the href attribute. Then add a phone number.

Demo

References

Creating hyperlinks on MDN