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

Austin Cumberlander
Austin Cumberlander
13,997 Points

Why are my images not being displayed even though I appear to have my images tagged correctly?

It's possible the images for this workshop requires a different src for the images but I have no idea what that would be. I have the same code written in my other workspace and the images display with no problem. Could someone help me out?

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

3 Answers

You have a typo in your code specifically this bit here:

<img scr

should be:

<img src
Daniel Houghton
Daniel Houghton
4,334 Points

It appears the code is correct to me.... however this would only be correct if the file path to the images was img/numbers....

check your folder name and correct to suit. When I did this lesson I named my images, so my src was images/numbers.....

Austin Cumberlander
Austin Cumberlander
13,997 Points

Thanks for the reply Daniel! My issue was that I had a typo for "src". I had it spelled "scr" so that's why it wasn't registering.

Daniel Houghton
Daniel Houghton
4,334 Points

Aha so you did! Slipped past me too. Oh well at least you got it