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

Ugh, I can't figure out why my image is broken. Help!.. Screenshot of my code: http://screencast.com

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Brady |dude| </title>

</head> <body> <header> <a href="index.html"> <h1>Brady Lewis</h1> <h2>a dude</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> <section> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul> </section> <footer> <p>Ā© 2014 Brady Lewis.</p> </footer> </body> </html>

5 Answers

John Mueller
John Mueller
719 Points

I just had the same problem. I noticed when I downloaded my workspace is that my folder was named img and in my directory in side the actual workspace it was Img. I changed it to img and previewed. It worked. Everything must be exact for it to work. I hope that helps.

Annie Reaney
Annie Reaney
920 Points

Oh thank you, thank you, thank you!!!!! So simple and obvious - except it wasn't! Worked a dream.

Hugo Paz
Hugo Paz
15,622 Points

Hi Brady,

Do you have a folder named img with an image inside named numbers-01.jpg?

If so, is your html file on the same level of that folder?

Thanks! What do you mean, on the same level?

Hugo Paz
Hugo Paz
15,622 Points

What is the structure of you files.

Do you have a main folder where you have all the files?

It should look something like this:

main folder [ index.html (or whatever name you have) img (this is a folder where you keep all the images) ]

This fixed it. I had Img instead of img!

John Mueller
John Mueller
719 Points

Woo! Write the fixed thingy so people can use this info in the future!