Hour Five: Selectors
As you learned in Hour 2, "Getting Started with CSS," selectors are the part of the CSS rule that identifies the target of the styling. Putting the power of selectors to use is vital for getting the most out of CSS.
In this hour, you'll learn
- More about simple selectors you've already been using
- How to use class and id selectors
- What the universal selector is and when to use it
- What pseudo-classes and pseudo-elements are and how they can be used
- How to specify styles that affect hypertext links
Sample Code
You can download the sample code from each hour as one package or individual files.
- Download all [2K tar.gz file]
- Listing 5.1 [HTML]
- Listing 5.2 [CSS]
- Listing 5.3 [HTML]
- Listing 5.4 [CSS]
- Listing 5.5 [HTML]
- Listing 5.6 [CSS]
- Listing 5.7 [CSS]
Web Links
These are the links presented in this hour, given here for easy reference.
- Babe [IMDB entry]
Updates and Errata
There are currently no updates to this hour's content.