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

when i create a html file and click preview. it opens a browser with links to the pictures

when i create a html file and click preview. it opens a browser with links to the pictures

<!DOCTYPE html>
<html>
  <head>
  </head>
  <title>Experience VR</title>
  <body>
      Experience VR
      A simple Blog virtual reality experience
  </body>

</html>

6 Answers

Hi Zain- I know it seems like a trivial thing, but you need to make the "i" in "Index.html" lowercase. If it isn't all lowercase Workspaces and real webservers don't realize its supposed to load it as the default page. Give it a try and let me know what happens. -Randy

Hi Zain, just wanted to follow up and see if you were still having the problem with your preview? -Randy

Ari Misha
Ari Misha
19,323 Points

Hiya Zain! Did you saved the file, i mean on your workspace not on your computer? Save the file and the hit preview .(Lemme know if it still doesnt work for ya. (:

i did save and still doesnot change anything

Ari Misha
Ari Misha
19,323 Points

Okay! It might be not an issue but your "<title>" tags must be inside your "<head>" tags. Period. And now regarding the issue, restart the browser?

would that make a difference that my workspace is in a separate window and my preview tab opens in another window?

btw restarted the browser and workspace and the issue is still there :(

Dear Zain,

check the spelling of your index.html file, if it is not exactly spelled index.html, for instance you missed the "e" and spelled it indx.html, the preview doesn't know to load that page. Please let me know if that helps.

Thanks, Randy

Hi Randy, i think i figured out what the issue is. when i click preview i get a website with the following data Index of /

Index.html featured.jpg vr-space.jpg vr-user.jpg

the list is actually a hyperlink. when i click index, it takes me to the website i created.

now what i cant figure out is why is it showing me different page than the instructors screen and how can that be fixed.

Randy, You are brilliant. So important to have an eye for detail in this field. Thank you.

Bei Zhang
Bei Zhang
2,345 Points

I had same issue here when I spelled "i" in"index.html" uppercase. It should be lowercase all the time :) problem solved.

Ari Misha
Ari Misha
19,323 Points

Ohh so silly of me! I dunno why didnt i notice it before but your "<title>" tags should be INSIDE your "<head>" tags. Do that and it might work this time. (:

i think that is not even an issue, when i click preview, its opening a completely different webpage.

this is how the web page looks

Index of /

Index.html featured.jpg vr-space.jpg vr-user.jpg