HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tutorial

HTML Basics

Introduction to HTMLHTML EditorsHTML StructureHTML Elements & AttributesHTML HeadingsHTML ParagraphsHTML FormattingHTML CommentsHTML Styles

HTML Text and Links

HTML Text FormattingHTML Quotations & CitationsHTML LinksHTML Email Links

HTML Lists and Tables

HTML ListsHTML TablesTable Styling & Borders

HTML Images and Media

HTML ImagesHTML Picture ElementHTML AudioHTML VideoHTML Embed & Object

HTML Forms

HTML Forms OverviewHTML Form ElementsHTML Input TypesHTML Input AttributesHTML Form AttributesHTML Form Validation

HTML Layout

HTML Block vs Inline ElementsHTML Div & SpanHTML Semantic Layout TagsHTML Iframes

Advanced HTML

HTML Entities & SymbolsHTML EmojisHTML Head Element TagsHTML Meta Tags for SEOHTML Responsive Design

HTML References

HTML5 New TagsDeprecated TagsHTML Global AttributesEvent AttributesComplete HTML Tag ListComplete HTML5 ElementsHTML Tutorial PDF
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. HTML Email Links

HTML Text and Links

HTML Email Links

HTML Email Links allow users to click and open their default email application to send a message directly.
This is done using the mailto: protocol inside the (anchor) tag.

Basic Email Link

Basic Example

html

<a href="mailto:contact@html5andcss3.org">Send Email</a>
  • Clicking the link opens the default email client with the To: field pre-filled.
  • The text between and </a> becomes clickable.

Adding Subject and Body

You can include a subject, body, CC, and BCC directly in the email link using query parameters.

Email with Subject Example

html

<a href="mailto:contact@html5andcss3.org?subject=Website%20Inquiry&body=Hello,%20I%20want%20to%20know%20more%20about%20your%20services.">Send Email</a>
  • %20 represents a space in URLs.
  • Opens the email client with subject and pre-written body.

CC and BCC Fields

You can also include CC (carbon copy) and BCC (blind carbon copy) recipients:

CC, BCC Example

html

<a href="mailto:contact@html5andcss3.org?cc=support@example.com&bcc=admin@example.com&subject=Feedback">Send Feedback</a>

Clicking this link automatically populates To, CC, BCC, and Subject fields.

Webmail Clients (like Gmail)

You can create a link that opens Gmail compose window:

Gmail Link Example

html

<a href="https://mail.google.com/mail/?view=cm&to=contact@html5andcss3.org" target="_blank">
  Send Email
</a>

Best Practices

  • The Email link will only work, when you have default email client is setup in your system.
  • Keep the link text descriptive:
    Contact Support instead of Click Here.
  • Avoid putting sensitive information in the body.
  • Test links across different email clients to ensure compatibility.

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

Conclusion

HTML Email Links (mailto:) provide a fast and convenient way for visitors to contact you directly from your website.
By adding subject, body, CC, and BCC, you can streamline communication and improve user experience.

PreviousHTML LinksNextHTML Lists