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

General Discussion

workspace preview

I have been using a blank workspace to practice what I have been learning. I have been using the example workspaces to try and trouble shoot my issues. however I cant seem to find the issue. when I go to preview the web page I have created I get a blank page with 3 links in the upper left hand corner. one oink is the name of my page the other two are the image I added to my page, and the third is the css file. all are hyperlinked, and when you click on them you are taken to the correct location. just why does the web page not load immediately when I go to preview it. I really think I did something wrong in my html code.

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

From what you describe you didn't name your html file index.html. When the web server receives a request that doesn't specify a specific html page, but only the root or subdirectory, it will look for a it will look for a default file called index which may be index.html, index.php, etc. In the absence of any file like that it can (if configured to do so) fallback to creating a list of files and directories with links like you see with your workspace.

Awesome thanks for the feedback. I didn't know that file name needed to stay as is. once I changed it back, everything worked as it should.