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

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.