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

John Amador
John Amador
515 Points

My images do not show on my site. My code: <img src="numbers-01.jpg" alt=""> what am I missing?

My image does not show on my website. all I get is a bullpoint... I thought I would at least see the broken image icon. Please advise.

Danilo Rodrigues
Danilo Rodrigues
22,594 Points

First, make sure you have uploaded the files. Remember that the path you write on the 'src' tag has to be relative to the index file. This means that your image tag should be <img src="numbers-01.jpg" alt=""> if the image is on the root of workspaces or <img src="img/numbers-01.jpg" alt=""> if you placed them inside 'img' folder.

2 Answers

MICHAEL P
MICHAEL P
5,191 Points

Thanks for posting this question and solution. I had the same question, and this helped me solve it properly.

Dor Sarel
Dor Sarel
9,987 Points

Hi, did your enter the images to the "img" folder as he did in the video? if yes - you forgot to add the "img" folder to the "src" attribute like this:

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

hope it solves your problem :)