Why cascading style sheets?
More than one style sheet can be used on the same document. If you define conflicting styles for the same element, the one most recently encountered controls the rendering. Click here to learn more about this aspect of CSS. How do style sheets work? Suppose you want to define a style for all h3 elements in a document (as in the following excerpt from a style sheet). h3 { font-family: arial; font-style: italic; color: #aa3600 } The selector: This begins our discussion of the format of the style sheet. In this case, h3 is known as the selector. Style definition: The selector is followed by a style definition. The style definition defines the style for that selector. So, once the style shown above is applied to the document, every h3 element in the document will be rendered in the font, style, and color shown (unless overridden by a different closer style as discussed here). List of fonts: You may have noticed that the style excerpt shown above differs from the one shown earlier, which li