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 How to Make a Website Creating HTML Content Structure the Image Gallery

Raghda Hesham
Raghda Hesham
1,332 Points

broken image icon!

im working on notepad instead of workspace...i've created a new folder and inside it created img folder and put my image in it ,and inserted my notepad into the new folder also...but when i open it by any browser it gives me a broken image icon ! what should i do ??

3 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Check your folder structure. It's possible that you aren't referencing it correctly (e.g. ../img/filename.jpg vs. /img/filename.jpg).

Hope this helps some.

-Rich

Sue Dough
Sue Dough
35,800 Points

You should post your code or double check for your mistake. I can't help you with such a limited question. Its like me asking a mechanic how I fix my car without him seeing it.

:)

Curtis Rickard
Curtis Rickard
6,610 Points

post your code as this will help us determine the issue, though as a reference...

remember to check if you are entering your code according to the structure of your folders

EXAMPLE:

../img/example.jpg vs. /img/example.jpg

ALSO...remember to make sure all letters are EXACTLY as described in the image.

EXAMPLE:

../img/Example.jpg vs. ../img/example.jpg

as the capital "E" will break your link if it is lowercase in the image name