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 trialRodolfo Urbina
3,705 PointsImages appear broken after adding them to workspace
I am uploading the images just as the video says, but when I refresh the preview screen the images appear broken. I tried to upload them again but its not working. How can I fix this?
Rodolfo Urbina
3,705 PointsHi Brandon,
I am trying but it does not appear. How can I add it here so the code is visible?
Rodolfo Urbina
3,705 PointsI found the mistake. I typed a capital letter in the name of the image folder and did not consider that in the code. It's working fine now.
2 Answers
Denny Schuldt
4,623 PointsHi Rodolfo,
Check the path to the image, for example if your index.html file is in the same level of the img folder, and you have your image inside the img folder, you should add them like this: <img src="img/image.jpg" alt="">
index.html img/ -->image.jpg
Regards, D.
Rodolfo Urbina
3,705 PointsHi Denny,
The index.html file is in the same level as the img folder. I tried to add them as you suggested but still is not working. Any idea what else should I check? Once I upload the images I can see them properly if I click them inside the img folder, so the files seem to be ok.
Brandon Kern
8,433 PointsBrandon Kern
8,433 PointsWhat does your coding look like? Could you paste it here so we can see where you've gone wrong or how to help you better?