Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You’ve seen how to select an element to style it, like this:
Or, how to select more than one element, like this:
You’re going to see that CSS allows you to specify all kinds of selectors that determine which elements your styles are applied to. Knowing how to use these selectors is the first step in mastering CSS, and to do that you need to understand the organization of the XHTML that you’re styling. After all, how can you select elements for styling if you don’t have a good mental picture of what elements are in the XHTML, and how they relate to one another?
So, let’s get that picture of the Lounge XHTML in your head, and then we’ll dive back into selectors.