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
Y K
3,390 PointsHow can I edit on a separate html / javascript file?
A very basic question about the following video: Programming > Introduction to Programming > Basics > Writing Your Program
So I was trying to follow what the video tells me to do as I was watching it. And I was able to follow the video while the codes were edited on Chrome. But as soon as the video starts using a separate html file and a javascript file, I got lost…
How can I make this "index.html" file on screen? (00:55) Could you possibly upload the sample html file you are using in the video? Do I need a separate application for that?
2 Answers
Casey Ydenberg
15,622 PointsYou may want to go through the "Build a simple website" learning adventure first.
To get a simple HTML file to display in your browser, in Windows, open a text editor (Notepad) and write some html, and then save as "index.html". Copy to the main directory of your hard drive (C:), and then in your browser address bar type: file:///C:/index.html. You can also execute javascript this way, because JS is executed by the browser and does need a special interpreter or software to make it run.
Y K
3,390 PointsProblem solved! Thanks Casey!