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

The pic is not uploading

I copied exactly how the code for the image (img) is supposed to be written. no upper case letters or anything . I reviewed it many times, i still don't see what i did wrong. any advice would help.thnks

3 Answers

Matthew Tran
Matthew Tran
16,343 Points

Two tips: 1. Make sure the capitalization is correct, even in the file name. I uploaded mine as .JPG instead of .jpg, and that mattered. 2. Make sure your files are in the right folder: if your code is calling for it to be in the img folder, make sure in your directory on the left, its in the correct image folder.

William Whatley
William Whatley
5,452 Points

I'd have to see your code to answer; make sure that the "img src" path contains the folder that the image is in also.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Samuel Octelene | Web Dev</title> </head> <body> <header> <a href="index.html"> <h1>Samuel Octelene</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>© 2016 Samuel Octelene.</p> </footer> </body> </html>

Thanks guys, for your help. i finally got it. i had trouble adding the pic in the img folder which is why there was no pic showing on the screen.