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

Why is my image not showing when I preview my page ?

I have double checked my code 10 times. Everything is entered correctly yet when I go to preview my page the image is not showing. Just a small box where it should be.

3 Answers

Raffael Dettling
Raffael Dettling
32,998 Points

Sounds like a wrong src path but to make that sure pls post youยดr code

Priyesh Tungare
Priyesh Tungare
13,168 Points

Please check the src path for the image as suggested by Raffael. Check for the absolute or relative path of the image. Please share your workspace or the code so that we can help in resolving the issue.

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

Akin Alaka
Akin Alaka
1,417 Points

Also make sure you save your code before you preview. Sometimes it is easy to forget that you have not saved the code before you hit the preview button. You should also post your code, it makes it easy to spot the issues and make recommendation.