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

Emails link doesn't open

After setting up the link to my gmail account, and clicking it in the refreshed website, all of the links work except the mailto: link to my gmail account. Below is my code. I don't think the browser is blocking it (it's in Chrome, so you'd think it would like it), but the other phone and Twitter links open their respective apps (phone is wierd, but still opens something). Thanks in advance.

  <section>
    <h3>Contact Details</h3>
    <ul class="contact-info">
      <li class="phone"><a href="tel:555-555-5555">555-555-5555</a></li>
      <li class="mail"><a href="mailto:gerndtr@gmail.com">gerndtr@gmail.com</a></li>
      <li class="twitter"><a href="https://twitter.com/intent/tweet?screen_name=gerndtr">@gerndtr</a></li>
    </ul>
  </section>

The link would work if you had a resident email program on your computer. For example microsoft outlook. Which a lot of business and professionals do still. Which it still makes it a handy link to have. so I see nothing wrong with it as it is. Just like where the the telephone link would launch skype on a PC; if you have it installed. If you dont; it wont.

Yes, that was it! When I switched my default email to Outlook - desktop, it worked perfectly. Thanks for helping me realize that it wasn't the code, but my settings instead.

2 Answers

Tom Geraghty
Tom Geraghty
24,174 Points

David Keller 739 2d ago The link would work if you had a resident email program on your computer. For example microsoft outlook. Which a lot of business and professionals do still. Which it still makes it a handy link to have. so I see nothing wrong with it as it is. Just like where the the telephone link would launch skype on a PC; if you have it installed. If you dont; it wont.

---answering instead of commenting so this doesn't come up as "unanswered" in forum search

Thanks!