Let's get started with a JavaScript Web Page!
- Open Notepad++
- Open your
index.html
file
- Open your
styles.css
file
- Click: New -> File
- Copy the JavaScript Page Template (HTML) code (below)
- Paste that code into your new file
- Click:
Save
- Name the file:
javascript.html
- Change the
Save as type:
to: Hyper Text Markup Language file (*.html)
- Click: New -> File
- Copy the JavaScript Code Template (JS) code (below)
- Paste that code into your new file
- Click:
Save
- Save that file in your
includes
folder
- Name the file:
javascript.js
- Change the
Save as type:
to: JavaScript file (*.js)
- Change your page title, your Author name, and your page heading to something appropriate
- Open your
styles.css
file
- Copy the JavaScript Styles (CSS) code (below)
- Paste that code into your styles.css file
- Change some styles
- In your
index.html
file
- Add a link to this page. Change:
<li>Create a Javascript Page</li>
to: <li><a href="javascript.html">Create a Javascript Page</a></li>
- Save your changes
- Click: Run
- Choose: Launch in IE
or Launch in Chrome
or Launch in Firefox
- View your web page
- Make any changes
- Save your changes
JavaScript Page Template (HTML)
JavaScript Code Template (JS)
JavaScript Styles (CSS)
Example