Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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>
David Keller
David Keller
6,309 Points

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,162 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!