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 Organize with Unordered Lists

Stephen Jackson
Stephen Jackson
1,229 Points

When putting my images inside the list I just can't get it to pass. What have I done wrong?

The challenge says to place the images from the image folder inside the list items. I just can't figure out what I've done wrong. I've gone back and rewatched the lecture and everything.

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>
      <nav>
        <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>
      </nav>
    </section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

A few things come to mind.

Have you double checked that the images are in the img folder?

Is the HTML file in the same place as the img folder?

Stephen Jackson
Stephen Jackson
1,229 Points

After searching the forums I found somebody that had a similar issue. Turns out the instruction video teaches you to put too much code in. This is a 2 part task, and when the first part accepted the <nav></nav> tags I guess I assumed they were allowed in part 2 as well. After removing the <nav></nav> tags the challenge accepted my code. Thanks for helping.

Damien Watson
Damien Watson
27,419 Points

Hey Stephen, you might want to add an answer that the <nav> shouldn't be wrapped around the unordered list and then check it as the correct answer so it is flagged as answered. Cheers.

1 Answer

J.D. Sandifer
J.D. Sandifer
18,813 Points

"This is a 2 part task, and when the first part accepted the tags I guess I assumed they were allowed in part 2 as well. After removing the tags the challenge accepted my code." - Stephen (OP)