What are html mailto links?

The mailto keyword allows you to create a link that launches the user’s default mail client so that the user can send an email to the address specified after the mailto keyword.

Just like any ordinary link, mailto links are placed in the href section of the anchor tags.

svg viewer

Additionally, we can add the cc, bcc, and subject fields within the tag. The first two fields are separated using the ? sign; whereas, the fields following are separated using & signs. See below for an example.

<a href=
"mailto:boss@workmail.com?cc=secretary@workmail.com&subject=Emergency"
> </a>
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved