Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

$1.99 Domain Names

With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.

HTML Email Code

Print Version

The following is an example of html email code. You can copy and paste this code into your own HTML documents - just change the values of the attributes as required.

The following code creates an email link - when your users click on the link, the browser should open the default email client with the "to" and "subject" fields already populated.

Basic Email Link Code

To use this code, simply change the email address to suit your own context.

<a href="mailto:homer@quackit.com">Email Homer</a>

This code results in:

Add A Subject Line

You can automatically populate the subject line with the following code:

<a href="mailto:homer@quackit.com?subject=Doh!">Email Homer</a>

This code results in:

About Email Link Code

Email links are created using the HTML anchor tag, which is the same tag used for creating links to another web page. To learn more about creating links, check out the HTML Links lesson of the HTML tutorial.

Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
               
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!