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 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
221,295 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.