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
David McGraw
Courses Plus Student 9,711 Points''Failed to load resource" from the HTML/CSS course basics
Can anyone help me with a technical question? An image is not loading properly on my index.html tab on my browser, When I inspected the element, it says "Failed to load resource" any help is much appreciated.
Thanks!
4 Answers
James Barnett
39,199 Points"Failed to load resource" sounds like a file path issue.
Here's an example:
Does that help?
If not, you can read up about absolute vs relative paths
Wayne Priestley
19,579 PointsHi David,
If you can show us your code you have it would make helping you out a lot easier.
David McGraw
Courses Plus Student 9,711 PointsSorry for the late reply back!
So I tried to enter the piece of code here to show you all but for some reason after I would hit "save answer" it was not showing my code, user error I hope!!! So I checked the line of code several times before ,and Its fine. This is for the "Build a simple website" / " Images and List" part of the lesson. It's the part when you are supposed to enter the image source to the first image. When I do that it does not show the image, instead It's shows on the screen (not the title tab) Smell Like Bakin. This is after saving the file on my text editor and after refreshing the browser as well. I also DL'ed the project ZIP file. I don't know what else to do.
Looking forward to getting passed this issue.
Thank you!
David McGraw
Courses Plus Student 9,711 PointsOk, I figured out the problem, I had not extracted the IMG files from the ZIP file. Once I did that, I refreshed the browser and the Image appeared like it should have.
What's great about this, is that I was able to learn about my machine in a better way being presented with a problem, which will happen more often than not. So thank you anyways guys!
