Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed HTML Basics!
You have completed HTML Basics!
Preview
Learn to create "mailto" links that auto-launch a user's default email program with pre-filled 'subject', 'to' and 'from' fields.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
to and
from address fields already filled out.
0:00
It let you begin composing an email
without first having to copy or
0:02
enter an email address
into the email client.
0:06
Well, that functionality was
created with just a link.
0:08
No fancy scripting or
programming necessary.
0:11
Let me show you.
0:13
So, first, back in index.html,
0:15
I'll place the email address in
the contact section inside <a> tags.
0:18
So to open the default mail program
with the link, you begin the email
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up