A Quick Overview of CSS
CSS works by describing certain parts of the page (one particular tag, all the tags of a specific type, or all tags sharing a particular characteristic). For each of these tag groups, you can then identify a number of rules. Each rule is a name/value pair. Take a look at the simple page displayed in Figure 5-1.
The code to produce this page is shown here:
<html lang = “en”>
<meta charset = ”UTF-8” />
<style type = ”text/css”>
The heading is red, this paragraph is blue on white, and the page background is yellow.
The new elements are not terribly surprising, but they are quite powerful. Note that the colors are changed without changing anything in the HTML body. All the real action happens in a special part of ...