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 HTML Basics Going Further with HTML Working on a Website Project Locally

Kaycee Harris
Kaycee Harris
935 Points

Images not working in the browser (internet explorer)

My images wont appear in internet explore but they appear in chrome. Here is my code for article.html: <img src="../../img/vr-user.jpg" alt="User trying a VR headset">

Here is the code for index.html: <img src="img/featured.jpg" alt="Virtual reality user"> <img src="img/vr-space.jpg" alt="User experiencing space in the VR">

2 Answers

Steven Parker
Steven Parker
229,644 Points

The HTML seems pretty generic. But how are the files organized? Are these HTML files in the same directory? If so, are there really two different "img" directories?

To facilitate a complete analysis and specific answer, make a "snapshot" of your workspace and post the link to it here.

Derek Graves
Derek Graves
838 Points

try going up 1 more dir ../ in your article <img src="../../../ for example. I was just doing this one the other day. As far as your index.html goes it looks the same as mine so not sure sorry.