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>

Free Resources

Copyright ©2024 Educative, Inc. All rights reserved