6.4 Basic CSS
Cascading Style Sheets (CSS) provides a flexible way to format text and allows designers to separate content from presentation.
CSS also makes it easy to institute global changes -- you can change the appearance of 100s of pages by changing body color in the core stylesheet. "Cascading" means that when there are multiple styles defined for a specific page or element, the browser will give them priority based on "how close" they are to the element in question. Thus:
h1 {color: #900;
}
| |
| declaration
selector
.subHead {font-size: 120%;
}
| |
| declaration
class
Next: Modifying styles
|
exercise
resources |