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 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.