Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Use the Navigation Element

Am I supposed to be able to click on the little icon in Workspaces that looks like an eye to view the a webpage?

Am I supposed to be able to click on the little icon in "Workspaces" that looks like an eye to preview the webpage after following along with the video writing HTML? Because I click on that icon and it brings me to a page written by the instructor very early on in the course that looks nothing like what I am working on currently.

3 Answers

Steven Parker
Steven Parker
216,164 Points

Based on my experience, it will take you to the virtual website created by your workspace, but not necessarily to the page you are editing. Unless you happen to be editing the site's default landing page (usually "index.html"), you will need to add the name of your page file to the URL that pops up in your browser. Of course, you will place a slash (/) between the original URL and your filename.

So, for example, if the browser opened to:

But you are editing "mypage.html", just change your browser URL to:

....and then reload to view your page.

Hi Joel-

Workspaces is a tool you can use to create your our work, what appears in a workspace when you create one is a starting place set up by the instructor - you will need to follow along and make edits as you move through the videos. Hope this helps,

Greg

Thanks Steven and Greg for taking the time to answer my question. It works now. I wrote the code in the index.html page. After clicking the icon, I refreshed the page and it took me to a hyperlink that just said "index". When I clicked the hyperlink, it loaded the most recent script.