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

need the answer

what is the problem

der>
    <section>
      <ul>
        <li>
          <img src="img/numbers-01.jpg" alt="">
        </li>
        <li>
          <img src="img/numbers-02.jpg" alt="">
        </li>
        <li>
          <img src="img/numbers-06.jpg" alt="">
        </li>
      </ul>
    </section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
       <img src = "img/twitter-wrap.png"alt = "Twitter Logo"></a> <img src = "img/facebook- wrap.png"alt = "Facebook Logo"></a>
    </footer>
  </body>

4 Answers

''' <footer> <a href="www.facebook.com"><img src="img/facebook-wrap.png" alt="facebook"/></a> <a href="www.twitter.com"><img src="img/twitter-wrap.png" alt="twitter"/></a> <p>Ā© 2013 Nick Pettit.</p> </footer> '''

Hunter G
Hunter G
6,612 Points

Daniel,

You need fix a few things. First, you need to include an anchor around your image link, you need to include the link to your social media sites when clicking on the images by using href inside of the anchor, and you need to remove the whitespace, or spacebar input before and after the = after src and alt.

Here's your code:

<img src = "img/twitter-wrap.png"alt = "Twitter Logo"></a> <img src = "img/facebook- wrap.png"alt = "Facebook Logo"></a>

Here's the correct code:

<a href="http://twitter.com"><img src="img/twitter-wrap.png" alt"Twitter Logo" class="social-icon"></a>
<a href="http://facebook.com"><img src="img/facebook-wrap.png" alt"Facebook Logo" class="social-icon"></a></a>

Hi, Sometimes the way your files are set up you do not need : img/

No, you dont need it, but it is an efficient way. However, for the purpose of completing the task at treehouse, you do need it.