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

CSS CSS Basics (2014) Understanding Values and Units Pixel Units

david strayer
david strayer
2,712 Points

Index.Html

Where can I find his index.html in the downloads? I downloaded his file and I can open his style.css, but I can not get his index? there is an index.html file but it opens up in my web browser. I want to view his code

SAGUFTA NAZEEM
SAGUFTA NAZEEM
4,145 Points

to do that u can click on the launch workspace on the lower right corner of the video screen.after that workspace should open in the browser.in the workspace window u can find index.html file.

2 Answers

If you want to view the code of a file you can:

  1. Right click -> Edit with Notepad++ // That is if you ahve Notepad++ installed. However there are a lot better IDEs for web development

  2. Open the file through the IDE you work on. It should be something like File -> Open.

david strayer
david strayer
2,712 Points

I have notepad, Also it will not let me open it with notepad or with anything else in fact. all the options are when I right click is: Open Cut Copy Delete Properties

We're talking about Notepad ++ (https://notepad-plus-plus.org/)

And don't go for Open With, since it will most likely select e default program for such files and you don't want that. What program do you use for web development?

I haven't tried it, but you might be able to open the file in Workspaces. You can try to create a new workspace, then try to open the file in that.

You can also view the source code of an HTML page by opening your browsers Developer tools. (In Mac using Firefox, you'd look for the Inspector.) You should also be able to simply right-click on a page and select View Source, and it will open the Inspector showing the source code.

Lastly you can download an external text editor. Sublime Text 2 (or 3 maybe) is one that I think they use on Treehouse. http://www.sublimetext.com/2 Dreamweaver (requires a license) and TextWrangler are also choices you could use.