Trusted answers to developer questions

What are html mailto links?

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

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>

RELATED TAGS

html
mailto
mail
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?