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 trialCrystal Bass
404 PointsI tried to add an image on my website. Why is it broken?
Screen Shot:
7 Answers
Kelsey Jackson
UX Design Techdegree Student 63,504 Pointsis your image folder in the same directory as your index.html file?
Crystal Bass
404 PointsI believe so... The 'img' folder is located in my 'My Site' folder, which is saved on my desktop.
Tiffany McAllister
25,806 PointsIs the index.html file also in the My Site folder?
Kelsey Jackson
UX Design Techdegree Student 63,504 PointsWell then it should work since your index file is in that folder too, have you tried the other images?
Crystal Bass
404 PointsYes, I tried two different images and it still appears broken on my site. Did I enter the right image tag in my HTML code:
Ferdis Cocii
140 PointsTry "/img/pindoll-01.jpg"
Dan Martin
33,150 PointsIt looks as though your index.html is also in a folder called img. Is the the project in a folder call img? Close your sublime window and open the folder that contains all your project files, then screen shot that. That way we can see the entire file structure.
Crystal Bass
404 PointsI figured it out. :) First, I had to upload my images via FTP -- and it's working! Thanks for your help.