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

Image not appearing in browser after I've completed this task.

Hi Guys,

I finished the task but the image will not appear in the browser. Instead I just get a blank bullet point instead of an image in the list.

Can someone please read my code attached to the bottom of this post to see if im doing something wrong, or if there is a problem with workspace loading the image.

P.S I have successfully uploaded the images to workspaces and put them into an img file.

3 Answers

You have forgotten to add the = after img src. Your code should look like this

        <img src="img/numbers-01.jpg" alt="">
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title> Craig Nash | Designer </title>
  </head>
  <body>
    <header>
      <a href="idex.html">
        <h1>Craig Nash</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 Craig Nash.</p>
    </footer>
  </body>
</html>"

Thank-you for helping me Lisa.

Only just started learning and couldn't see what was wrong. Think I need some sleep ;)