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 trialSanif Momin
3,875 PointsImage 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
James Anwyl
Full Stack JavaScript Techdegree Graduate 49,960 PointsSounds 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.
Sanif Momin
3,875 Pointsthanks it worked !!! i figured out where i was wrong thanks a ton !
James Anwyl
Full Stack JavaScript Techdegree Graduate 49,960 PointsNo problem glad I could help :)