Let's Get Started with Stylesheets!
- Open Notepad++
- Open your index.html file
- Choose:
File -> New
- Copy the Stylesheet Template (CSS) code (below)
- Paste that code into your new file
- Add some CSS styles to the
body
, h2
, and p
tags
For example: background-color
, color
, font-family
, etc.
- Save your file in your
includes/
folder as: styles.css
- Change the
Save as type:
to: Cascade Stylesheets (*.css)
- Click: Run
- Choose: Launch in IE
or Launch in Chrome
or Launch in Firefox
- View your web page
- Make any changes
- Save your changes
- In your index.html file
- Add a link to this page.
Change: <li>Add CSS to Your Home Page</li>
to: <li><a href="index.html">Add CSS to Your Home Page</a></li>
- Save your changes
- View your web page
- Make any changes
- Save your changes
Stylesheet Template (CSS)