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


Steve Caprarola
Steve Caprarola
436 Points

Images don't display

I have been on the track for "HTML First" and "Adding Content to HTML" in the Web Design Track. I have followed all the instructions and repeated them in the workspace, however when I pull up the website the images do not come up. What does come up is a little ? inside a box. What could be causing this.

2 Answers

Adam Duffield
Adam Duffield
30,494 Points

When that happen's it means that the browser recognises that you have a correct "img" tag but the source you have specified is probably wrong. Try changing the source of what your img tag links too and if you still have no luck post your code on here so i can help you out :)

Like Adam said the browser has recognised that you want an image there which is why it is showing you the error symbol but it cannot find the image because the value you have given the src attribute doesn't link to an image.

First of all make sure that you have correctly typed the filename into the src attribute. Second, make sure that you have included the file extension such as .jpeg or .png. Finally, if your file is in a folder, you will need to make sure the src attribute of your img element knows this.

Here is a working example of an img tag. In this case the image can be found in the "img" folder and is called picture1.jpg

<img src="img/picture1.jpg" alt="A picture.">
Lush Sleutsky
Lush Sleutsky
14,044 Points

its actually src, not href...

Thanks for pointing that out actually. Everyone makes mistakes! :P