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 trialZain Ahmad
1,065 Pointswhen 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
Randy Layne
Treehouse ModeratorHi 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
Ari Misha
19,323 PointsHiya 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. (:
Zain Ahmad
1,065 Pointsi did save and still doesnot change anything
Ari Misha
19,323 PointsOkay! 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?
Zain Ahmad
1,065 Pointswould that make a difference that my workspace is in a separate window and my preview tab opens in another window?
Zain Ahmad
1,065 Pointsbtw restarted the browser and workspace and the issue is still there :(
Randy Layne
Treehouse ModeratorDear 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
Zain Ahmad
1,065 PointsHi 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.
Quentin Jobs
UX Design Techdegree Graduate 23,599 PointsRandy, You are brilliant. So important to have an eye for detail in this field. Thank you.
Bei Zhang
2,345 PointsI had same issue here when I spelled "i" in"index.html" uppercase. It should be lowercase all the time :) problem solved.
Ari Misha
19,323 PointsOhh 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. (:
Zain Ahmad
1,065 Pointsi 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
Randy Layne
Treehouse ModeratorRandy Layne
Treehouse ModeratorHi Zain, just wanted to follow up and see if you were still having the problem with your preview? -Randy