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

I've done everything I need to but it still says it's wrong. What do I need to do?

I just don't understand what else I need to do.

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Nick Pettit</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <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>
      <img src="Facebook-wrap.png" alt="">
      <img src="twitter-wrap.png" alt="">
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

3 Answers

Thomas Fildes
Thomas Fildes
22,687 Points

Hi Mishaela,

The problem with your code is that the file paths of your images are wrong and the browser can't find them. Because your images are in the img folder you need to specify the path as "img/facebook-wrap.png" in your src attribute. This allows the browser to cycle through and inside this folder instead of looking outside. Here is the correct code below for you to compare if unsure:

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

Happy Coding!

The images are stored in a folder called img. In order to link to them you need to use the name of the folder in the filepath for example:

<img src="img/myImage.png" alt="Some alt text">

will load the file called myImage.png from inside the img folder.

Hope this helps :)

Jay Padzensky
Jay Padzensky
4,731 Points

Hey Mishaela! Nice work, you're super close! Remember, you'll need to identify the relative path to the image, very similarly to how the number images above in the section element are linked. From there, be sure to identify an "alt" value for both, then you've got it!