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 trialBrandon Grooms
3,598 PointsHow do i get my Gmail to work in the code??
<li class="mail"><a href="mailto:brandongrooms16@gmail.com">brandongrooms16@gmail.com</a></li>
2 Answers
egaratkaoroprat
16,630 PointsHey Brandon,
mailto: will use the default mail client that is installed on your computer (e.g. Outlook, Thunderbird, Apple Mail, etc.). Since you are probably accessing Gmail via web, the browser does not know what mail client it should use and so probably nothing is going to happen. As Gmail via web is just another web site and is not a mail client.
MoatazBellah Ghobashy
9,518 Pointsfor gmail account, https://www.youtube.com/watch?v=SnpZ9i9es3U
Brandon Grooms
3,598 PointsBrandon Grooms
3,598 PointsWhat should I use or how can I get it to work?
egaratkaoroprat
16,630 Pointsegaratkaoroprat
16,630 PointsEither use a contact form (but to be able to do that, server side scripting is necessary) or setup one of the mentioned mail clients on your computer and link it to your Gmail account. I would not worry too much about that, just know that mailto: will tell the browser to open a mail client (again, the Gmail page is a WEBSITE and not a mail client) and keep learning other stuff. Sooner or later you will begin to understand why it works this way.