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


Workspace only brings up idex.html page when clicking the view icon not my new .html which is labeled differently

In the early stages of this course learning how to set up a new website. When clicking the view "eye" icon in work space it brings up the original idex.html page instead of the new one I have created. This problem seems to lie in the workspace not in the actual coding of what Im doing very confused please help.

index.html is special to browsers in the way that the browser will view that as the homepage hence why it keeps opening the index.html.

To open a new page you'll need to create a link to click to so you can open the new page.

1 Answer

18,813 Points

Like Alex Davis mentioned, your browser will automatically display the index.html page by default. In order to view a different page in the main folder, you'll need to either link to it or manually type it into the browser.

For example, if your new page is called foobar.html you can preview your workspace as normal, and then add /foobar.html to the end of the url - (ports).treehouse-app.com/foobar.html.

If it's still giving you trouble, let me know and we can take at look at your workspace. Good luck, and happy coding!