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

Image not showing up in workspace preview. Image showing up as Blue box ?

Image shows up as blue question mark box.

2 Answers

Hey Soren,

It sounds like your link to the image could be incorrect. Check the file path, and make sure its correct (possibly check the location of the file, such as an "img" folder), and also ensure you are using the correct file extension, such as .png .gif or .jpg

So for example, the file path on my workspace is:

img/picture01.jpg

Hope that helps

=)

Also, insure your img folder is exactly as it is in your code. For example: If your folder is titled IMG, ensure your code reads:

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

On the other hand, if you capitalized IMG in the folder name, make sure it matches in the code like this:

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

The easier thing to do it to change the folder name so you do not have to change every line of code if they are mismatche.

Hope this helps!