How to make an email address clickable on a web page or in an email

by Ron Foreman on August 10, 2009

FacebookTwitterLinkedInPinterestGoogle+Share

Here’s how to make your email address ‘clickable’ on a web page. Just add a ‘mailto:’ to the tag, like this:

<a href="mailto:you@youraddress.com">Email me</a>

(Note email address is made up, use your email address.)
————————
or to show your email address:

<a href="mailto:you@youraddress.com">you@youraddress.com</a>

————————
or to include a subject for the subject line of the email:

<a href="mailto:you@youraddress.com?subject=hello">you@youraddress.com</a>

Change the ‘hello’ to whatever subject line you wish. (Ignore the carriage return and place all the code on one line.)

{ 0 comments… add one now }

Previous post:

Next post: