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 Getting Started with HTML Global Structure of an HTML Document

Why is the preview showing an Index/ of .jpg files?

I have built the code exactly as instructed however, when i click preview, a tab named "index of/" opens displaying:

Index of / [ICO] Name Last modified Size Description [TXT] Index.html 2020-05-06 22:14 184
[IMG] featured.jpg 2017-06-06 17:30 33K
[IMG] vr-space.jpg 2017-06-06 17:30 79K
[IMG] vr-user.jpg 2017-06-06 17:30 39K
Apache/2.4.18 (Ubuntu) Server at port-80-medeeq8ler.treehouse-app.com Port 80

4 Answers

Nina Gripenborn
Nina Gripenborn
3,725 Points

Code looks fine. You need to rename your index.html file with lower case i instead of Index.html :)

I was having the same issue, and this was the solution ^. Thanks, Nina.

Sherry Yu
Sherry Yu
4,011 Points

I also had the same issue and this is the solution, Thanks! The only note I need to add is that when you rename your HTML file, the name has to be exactly "index.html". I've tried using the name "vr-experience.html" and failed to launch the proper web, even though all the letters were in lower caps.

jhon white
jhon white
19,956 Points

Could you please include your code !!

1<!DOCTYPE html> 2<html> 3 <head> 4 <title>Experience-VR</title> 5 </head> 6
7 <body> 8 Experience VR 9 A simple blog about virtual reality experiences 10 </body> 11</html>

Fran ADP
Fran ADP
6,291 Points

could you include your code pls.

1<!DOCTYPE html> 2<html> 3 <head> 4 <title>Experience-VR</title> 5 </head> 6
7 <body> 8 Experience VR 9 A simple blog about virtual reality experiences 10 </body> 11</html>

jhon white
jhon white
19,956 Points

Every thing looks good.

<!DOCTYPE html> 
<html> 
  <head> 
    <title>Experience-VR</title> 

  </head> 

  <body> 
    Experience VR 
    A simple blog about virtual reality experiences 
  </body> 
</html>

Maybe you need to put your code in a file with (.html) or saved before press review.

I checked for you and it is worked.

Good luck :)