Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Structure the Image Gallery

I've successfully uploaded the image files, but when I hit preview, it doesn't show numbers-01.jpg, just a question mark

I'm wondering if I've done the coding wrong.

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

7 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Can you post your code in here? It will help us figure out whats wrong. I still run into problems where I think I've written the code correctly, but come to find out, I missed one simple little thing.

If you haven't posted code in the forum before, there is a Markdown Cheatsheet below the textbox that shows you how to do it.

Thanks!!

Can you show the code you've got written out? It would help a lot. The question mark means the img link is "broken" if you carefully examine the html for that picture, as well as check the folder the image is stored in I suspect you'll find a minor misspelling, a rogue capitol letter, or a missing file.

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

Thanks Dallas Davis and Emma Willmann for taking the time!

Yes, I dragged and dropped the images. If I click on them individually I can see every picture.

Ah! I put them in Img and not img. Wow, such a tiny thing. Thanks so much for your help!

Nice! Good work ;)

That link should work the way it's written so I'm with Emma that the file's location or name might be off.

The only other thing to check is something I ran into which is sometimes the JPG file extension might be in caps, the file name needs to match exactly including caps.

So in the same place that your index.html file is stored there should be a folder named "img" and your numbers-01.jpg file should be in that "img" folder and make sure the file name exactly matches the html and you should be all set :)

It's always something elusive but small and easy to fix, you got this.

Good luck!!!!

AWESOME! I also had the same problem! I named the folder Img and not img! when I renamed it, it was fixed like magic! thank you so much!