Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Going Further with HTML Email Links and Entities Challenge

ivana kantnerova
ivana kantnerova
15,932 Points

Set the "contact" link to begin composing an email in the user's default email program when clicked?

email?

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h3>Design & Development</h3>
    <p>Contact me at <a href="mailto:">this email</a>.</p>
    <p>Ā© 2017</p>
  </body>
</html>

2 Answers

Justin Olson
Justin Olson
13,792 Points

You are so close!

After the mailto, you need to include the email address it's being sent to:

<p>Contact me at <a href="mailto:person@gmail.com">this email</a>.</p>

By clicking that link, the user's email will open, and the To: will be that email.

Hope this helps!

thank you