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

Krishnendu Banerjee
Krishnendu Banerjee
1,005 Points

What Have I done wrong

Sir I cannot understand where I have gone wrong. they are telling to make sure i include a img tag

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="Image/numbers-01.jpg" alt="">
        </li>
        <li>
           <img src="Image/numbers-02.jpg" alt="">
        </li>
        <li>
           <img src="Image/numbers-06.jpg" alt="">
        </li>
      </ul>
    </section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

4 Answers

You capitalized image. These languages are case sensitive and almost everything begins with lower case.

Steven Treadway
Steven Treadway
10,037 Points

The images are in the "img" folder. So all you have to do is change "Image/..." to "img/..."

<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>
Rishit Shah
Rishit Shah
4,975 Points

Check the name of the folder in which the images are stored. Write that exact name in place of the word 'Image' that you have specified in the source path of image that is in the " ". Tell me if the problem persists.

P.S: Don't always focus on what the hint says. It sometimes does not give the exact but closest possible answer about your mistakes which might be a bit misleading at times. Check other code related to the hint as well.

belen almonacid
belen almonacid
8,495 Points

hello!

try adding ../ like this: <img src="../img/numbers-01.jpg" alt=""> ; Sometimes it has to do with the location of the file so by adding this dots/ it allows to search outside the img folder and not only within. (sorry im not the best explaining it with words, hope it helps).