Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Structure the Image Gallery

I tried to add an image on my website. Why is it broken?

7 Answers

I believe so... The 'img' folder is located in my 'My Site' folder, which is saved on my desktop.

Tiffany McAllister
Tiffany McAllister
25,806 Points

Is the index.html file also in the My Site folder?

Yes, I tried two different images and it still appears broken on my site. Did I enter the right image tag in my HTML code:


Try "/img/pindoll-01.jpg"

It 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.

I figured it out. :) First, I had to upload my images via FTP -- and it's working! Thanks for your help.