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

My image is not showing on the preview?

I have uploaded the numbers-01.jpg image correctly and it exactly replicates the example on the video yet when I preview the page; no image is shown. I have tried using a different image and I have also tried using an image from a URL. It is just not showing up at all.

Please provide your source code and ill help ya out :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Erin,

Would you be able to post the code for us so we can have a look at it? Your issue sounds odd, but there might be something we can spot from the code. :)

4 Answers

A similar thing happened to me.

Go to your windows explorer, and go to the folder where your project is saved. Triple check that you have the correct directory name. My pic were in Howtocreateawebsite/project/img/img and that's why the image would't show in the preview. I had to delete one of the img folders. Then , Delete all the files and folders and import everything back in. Let me know if this works for you;

Jovan Dandridge
Jovan Dandridge
12,835 Points

I had a similar problem. My Img folder had a capital (I) and in the code I inputed a lower case (i) as soon as i changed this it started to work

Show us your code so that we can get a better idea of what's going wrong here. :)

Hannah Gaskins
Hannah Gaskins
14,572 Points

Hello Treehouse, I too have a broken image link. Here is my source code:

"""

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

"""

Any ideas of where I am going wrote? Thanks ! :)