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


Simple HTML template for the Intro to Programming course

For my lessons in Introduction to Programming, I need a simple HTML for google chrome that I can plug my programs into and run them in the browser. If someone could give me one, that would be great.

4 Answers

James Barnett
James Barnett
39,199 Points

I'd suggest you use jsbin.com instead of a basic webpage

But if you really want to use a basic HTML file:

<!DOCTYPE html> 
<html lang="en-us">
        <title>My JavaScript Playground</title>
        <meta name="Description" content="My JavaScript Playground">
        <meta charset="UTF-8">
        <script type="text/javascript">
            /* JavaScript goes here */
        <!-- HTML Goes here -->
Neil Mountford
Neil Mountford
635 Points

You could check out jsFiddle. It's a browser based html, css and javascript editor that lets you see the output from your code live. It also lets you save/share them too :)

Edit: The url is http://jsfiddle.net/

Well, I was thinking of more like a simple copy and paste type deal. I have a program that will run the HTML, but I need a basic HTML to run.

I highly suggest that you get a text editor like Treehouse recommends, instead of a browser solution. If you ever change your mind and decide to get a text editor, I can recommend Sublime Text 2.