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 trialrodian
3,637 PointsAm 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
231,198 PointsBased 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.
Greg Adams
13,268 PointsHi 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
rodian
3,637 PointsThanks 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.