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 Structure the Image Gallery

My Images are not showing in the preview screen on work space.

On structure the image gallery in creating html content I'm fallowing all the instructions but my images still are not showing im not sure why?

8 Answers

Alan Johnson
Alan Johnson
7,625 Points

Can you post your code for index.html? That'd help point to what may be the problem.

Yeah I can. The whole code works its just the image doesn't show on the site. When I open the hyper link it shows the image.

<!DOCTYPE html>
<html>
  <head>
      <meta charset="utf-8">
    <title>Tiffanie Kyker | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Tiffanie Kyker</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/number-o1.jpg"alt="">

        </li>
   </ul>
    </section>
    <footer>
      <p>&copy; 2014 Tiffanie Kyker.</p> 
    </footer>
  </body>
</html>
Alan Johnson
Alan Johnson
7,625 Points

Thanks for sharing that. In the video, Nick uses the image tag:

<img src="img/numbers-01.jpg" alt="">

It looks like that difference in file names may be what's throwing things off.

Ok I changed it and its still not coming up

<!DOCTYPE html>
<html>
  <head>
      <meta charset="utf-8">
    <title>Tiffanie Kyker | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Tiffanie Kyker</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-o1.jpg" alt="">

        </li>
   </ul>
    </section>
    <footer>
      <p>&copy; 2014 Tiffanie Kyker.</p> 
    </footer>
  </body>
</html>

I thought it was just my browser but I tried chrome to and nothing but when I Is there away to snap a pic in here to show you what I'm seeing?

Alan Johnson
Alan Johnson
7,625 Points

You have img/numbers-o1.jpg (you have the letter o in the name) as the image path, but Nick uses img/numbers-01.jpg (the number zero).

I have zero

<!DOCTYPE html>
<html>
  <head>
      <meta charset="utf-8">
    <title>Tiffanie Kyker | Designer</title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Tiffanie Kyker</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>
   </ul>
    </section>
    <footer>
      <p>&copy; 2014 Tiffanie Kyker.</p> 
    </footer>
  </body>
</html>

http://web-27zfuf3oep.treehouse-app.com/Index.html This is what I get where the image should be its just square with a X threw it.

Alan Johnson
Alan Johnson
7,625 Points

So it looks like all your markup is right now. I'm not getting the img/numbers-01.jpg file back when I request it, though. Can you see the img folder in Workspaces? Is there a numbers-01.jpg file inside of it in Workspaces?

Yeah there is. and when I do the hyper link it opens in the next step i'll try getting the code complete then send it to here and see if it works