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

Joel Buzzanco
PLUS
Joel Buzzanco
Courses Plus Student 2,738 Points

Email link not working

In the video at around 6:45, he shows you how to get the href to make your email a link on the webpage. For some reason, it is not showing up as a link on my website. Here is what my code looks like for this in contact.html:

<section> <h3>Contact Details</h3> <ul class="contact-info"></ul> <li class="phone"><a href="tel:814-123-4567">814-123-4567</a></li> <li class="mail"><a href="mailto:jcbuzzanco@gmail.com">jcbuzzanco@gmail.com</a></li> <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=JoelBuzzanco">@JoelBuzzanco</a></li>

  </section>

Understand that the other links are working for ph and twitter but I'm not sure why email isn't. I am using the most recent version of Firefox, 41.0.2.

1 Answer

Hi Joel,

It's possible that you have some styles that are stopping it from looking like a standard link but I've just tried the code above in CodePen and it linked fine. The only thing I'd say is that you'll need to wrap your list items (li) inside your ul code so:

<ul class="contact-info"></ul>
    <li class="phone"><a href="tel:814-123-4567">814-123-4567</a></li>
    <li class="mail"><a href="mailto:jcbuzzanco@gmail.com">jcbuzzanco@gmail.com</a></li>
    <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=JoelBuzzanco">@JoelBuzzanco</a></li>

becomes:

<ul class="contact-info">
    <li class="phone"><a href="tel:814-123-4567">814-123-4567</a></li>
    <li class="mail"><a href="mailto:jcbuzzanco@gmail.com">jcbuzzanco@gmail.com</a></li>
    <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=JoelBuzzanco">@JoelBuzzanco</a></li>
</ul>

Hope that helps :)

-Rich

Joel Buzzanco
Joel Buzzanco
Courses Plus Student 2,738 Points

That was it! B-) the li had to All be wrapped inside the ul. Thanks for the extremely fast response too.

No problem. Glad you sorted it :)

-Rich