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

Matt Higgins
Matt Higgins
6,898 Points

Technical Issue With a code challenge

The practice screen keeps telling me that that my social media images are no longer passing after I add in the social links around the images. This is what I'm entering, so my question is am I doing something wrong or is this an error with the tool? Thanks.

<footer>
  <a href="http://twitter.com><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
    <a href="http://facebook.com><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>      
  <p>&copy; 2013 Nick Pettit.</p>

4 Answers

Samiruddin Syed
Samiruddin Syed
3,136 Points

You are missing the ending quotes of the anchor tag.

so your code should look like :

<footer>
  <a href="http://twitter.com"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
    <a href="http://facebook.com"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>      
  <p>&copy; 2013 Nick Pettit.</p>

Hope that helps.

you are not closing the href attribute you need to close the quotes ""

<footer>
  <a href="http://twitter.com"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
    <a href="http://facebook.com"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>      
  <p>&copy; 2013 Nick Pettit.</p>

You need to close the link in the href with quotes on both sides.

James Barnett
James Barnett
39,199 Points

If you look closely at the syntax highlighting of the code you posted on the form you'll notice the src attribute is highlighted, that's because something is amiss with it. Syntax highlighting is a great aid in troubleshooting misplaced punctation while coding.