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 Build a Simple Website Creating a Website Structure CSS Reset

Images are not loading in Cupcake project

Downloaded the project files that accompany this lesson. When I enter the image names in text editor they do not load in the browser after refresh. Simply question mark over the image. What am I doing wrong?

8 Answers

Kristopher Keen
Kristopher Keen
9,992 Points

Also check your file path when calling the img. Make sure img folder is in same folder as your index.html file. Then make sure your logo.gif file is in that img folder.

Logan R
Logan R
22,989 Points

I would suggest giving us the code to better help you :) Try watching the video "Tips for asking questions" to the right of this page! :D

Without looking, I would check 2 things:

  1. Did you include img directory when you looked up the picture? IE: img src="img/hello.png"

  2. Are the pictures present in the correct directory?

Thanks!

Thank you! I saved the zip file to my desktop and entered the correct name of the images

Logan R
Logan R
22,989 Points

Well, if you did all that correct, I would advise to just simply paste the code in a comment using the proper format and myself, or someone else can check it to see if you made a little mistake :)

ok thanks!

Here's the example from the logo from my code <img src="img/logo.gif" alt="Smells Like Bakin">

Yeah I'm having the same issue with exactly the same code. There is just a strange icon that looks like an SD memory card...

Logan R
Logan R
22,989 Points

Yeah, I am pretty sure the image is not loading.

I have no idea what is causing this to happen. I personally downloaded the files and extracted the files to my desktop and it worked just fine for me.

Do I have to open the project file in text editor in order for it to locate the image file. I'm at an impasse now as the css files are not loading either

Hi Andrew. I was having this same problem earlier. I was able to resolve it by copying the img folder (from the website waters zip file) onto my desktop. I believe that the issue was that I had saved the zip file into and folder without extracting it. Hope this helps. :o)