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!

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 How to Make a Website Adding Pages to a Website Build the Contact Page

When I click on my email nothing happens

It should send the user to yahoo

Kristof Szilagyi
Kristof Szilagyi
7,431 Points

Did you write <a href="mailto:youremailaddress@yahoo.com">youremailaddress@yahoo.com</a> ?

I mean:

<!-- <a href="mailto:youremailaddress et yahoo.com">youremailaddress et yahoo.com</a> -->

6 Answers

Juan Aviles
Juan Aviles
12,795 Points

Your code will not send a user to Yahoo. It will open the users default email client with your email address in the "to:" field ...for example mine is Outlook, and your code works correctly for me.

oh ok thanks. i guess ill try another browser.

i found the problem i never had my own default email client

Wayne Priestley
Wayne Priestley
19,579 Points

Did you use mailto?

<a href="mailto:name@rapidtables.com">Send mail</a>

<li class="mail"><a href="mailto:garciajosuel@yahoo.com">garciajosuel@yahoo.com</a></li>

whats wrong here? do i add the send mail after the first or second email?

<li class= "mail"><a href="mailto:garciajosuel@yahoo.com">garciajosuel@yahoo.com</a></li>
Kristof Szilagyi
Kristof Szilagyi
7,431 Points

there is a whitespace after class= remove it and your code will work

i removed the white space still no luck

checked other web browsers??

im using google chrome ill try another

Yves Roulin
Yves Roulin
4,452 Points

Mailto is used for EMAILS only, opens Outlook for example or your default email client.

Hope it helps.