Hour Two: Getting Started with CSS
Creating a style sheet is simply a matter of creating a file of CSS rules and then applying them to an HTML file.
In this hour, I'll take you through the whole process, and you'll learn
- What kinds of tools, from text editors to CSS software, you can use to write your style sheets
- How to create, name, and save a style sheet
- What the different parts of a CSS rule are and the function of each
- How and when to add comments to a style sheet
- Which simple rules you can use to create a basic style sheet
- How to apply your style sheet to a simple HTML file
- Which browsers to use to test your style sheet
Sample Code
You can download the sample code from each hour as one package or individual files.
- Download all [1.7K tar.gz file]
- Listing 2.1 [CSS]
- Listing 2.2 [HTML]
- Listing 2.2 with style sheet 2.1 applied [HTML]
- Listing 2.3 [CSS]
- Listing 2.2 with style sheet 2.3 applied [HTML]
Web Links
These are the links presented in this hour, given here for easy reference.
- TopStyle CSS Editor
- Style Master CSS Editor
- JustStyle CSS Editor
- Microsoft FrontPage
- Macromedia Dreamweaver
- Adobe GoLive
- Coffee Cup HTML Editor
Updates and Errata
There are currently no updates to this hour's content.