HTML Email Codes

This page provides you with the HTML code for creating an email link on your website. You can copy/paste this code on to your own website and change the email address and subject line.

You create an email link by using the 'a' (anchor) tag. The thing that distinguishes this as an email link is the value of the 'href' attribute. To make an email link, this value should start with 'mailto:', followed by the email address.

Mailto Code

The above HTML code results in:

Adding A Subject Line

You can automatically populate the subject line by adding the 'subject' parameter:

The above HTML code results in:

Enjoy this site?

Thanks for supporting Code-Generator.net!

© Copyright 2006 - 2017 Code-Generator.net | Privacy Policy