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 Creating HTML Content Add Social Media Links

After Putting in Facebook img, it wants the link, which i put. It won't pass me, it says task 1 won't pass

Here's the text i used, from <img src etc, was fine. When i added the link, it wouldn't pass.

<a href="http://facebook.com/nickpettit><img src="img/facebook-wrap.png" alt="Facebook Logo">

2 Answers

Hi Nosson,

You're missing the closing quote around your href attribute and I don't see a closing a tag, </a>

<a href="http://facebook.com/nickpettit"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>

Links are opened and closed like so, <a href=""></a>. The text, or html elements that you want the link to be applied to should go between the opening and closing a tags. Some other mistakes are:

  1. You forgot the closing quotation for your href
<a href="http://facebook.com/nickpettit"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>

Go ahead and do the same for your Twitter account.