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 Add Image Gallery Content

Kevin Heck
PLUS
Kevin Heck
Courses Plus Student 1,290 Points

Why do my images appear as image icons?

first, I am following along with the video (How to make a website-Add image Gallery) using Sublime Text. I downloaded all of the resources provided by the site (.jpg and .png files) and uploaded them in to my editor. I have referenced and sourced all of the images correctly and when I preview the site, the images appear as image icons and not the images themselves. In the video, Nicks page has the images displayed, so I must have done something wrong. Any help would be greatly appreciated.

Kevin Heck
Kevin Heck
Courses Plus Student 1,290 Points

Update- My mistake was nesting my index.html file in the folder with my images. Hopefully, if this happens to you, my mistake will help you.

Image doesn't show in browser, shows only icon. Syntax used is

<img src="img/(my image.jpg)" alt="">, stills shows icon, and I'm using atom.io

1 Answer

Eric Wade
Eric Wade
4,372 Points

THANK YOU! This was exactly my mistake too.