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

Image wont show up in browser- HTML

when i start putting a code and insert a image code and refresh the browser i get a box with a question mark in it , i get that the image is placed but the image cant be viewed please help

3 Answers

Sounds like a filepath issue, check out this link for more details on filepaths.

So lets say you have a folder called "My Website" and inside this folder is your index.html file and another folder called "img" which is where your images are stored. To insert an image from the image folder you would add

<img src="img/image1.jpg">

to your index.html file.

Hope this helps.

thanks it worked !!! i figured out where i was wrong thanks a ton !

No problem glad I could help :)