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 Going Further with HTML Linking to Sections of a Web Page

Stephen Gough Jr
Stephen Gough Jr
4,187 Points

Question About Viewing Workspaces

I'm curious as to why I am unable to preview the article.html file on it's own. After I followed through the video's steps in "Linking to Sections of a Web Page," whenever I hit preview, it always brings up the index.html webpage, no matter which tab I select preview from. Did I somehow mess up the coding for that to be happening?

Alex Bonilla
Alex Bonilla
17,765 Points

Did you make sure that you saved it before you tried to preview? Check that first than if not look over the code again. There was probably a simple mistake that causing the page not to preview correctly. Hope that helps.

1 Answer

Stephen Gough Jr
Stephen Gough Jr
4,187 Points

Hey, Miranda. Yes, I did make sure the work was saved. What's strange is that the preview works fine, it's just it won't preview the file I'm on, only the root file (I think I'm saying that right). The only way for me to view the html I want is by navigating to it from the main html. I could have swore I didn't have to do that before, but upon opening up an earlier workspace, the same thing happened. I'm not sure if was always like this and I'm losing my mind or if something changed recently.