J. M. Pressley
Music |  Writing |  Travelogues |  Shakespeare Resource Center |  Contact

Introduction | CSS Principles | Basic Concepts | Gettysburg Revisited | Other Resources

CSS Principles

The principle of Cascading Style Sheets is simple: let the HTML tags do their intended work. CSS achieves the separation of style/appearance from the structure of the document. It also allows for more precise control over the appearance of the document than that afforded by HTML additions.

What does "cascading" mean?

This simply means that there are multiple ways in which the browser will recognize formatting styles. These will be discussed in the next lesson, but essentially there are four basic levels of importance, in which one level overrides another:

  1. Browser default (lowest)
  2. External style sheet
  3. Embedded style sheet
  4. Inline style

In this progression, external style sheet directions override the browser defaults. An external sheet, however, is overridden by an "embedded" style sheet (directions that are written in the <HEAD> section of the HTML document. In turn, an inline style (directives given within a tag itself) override all the others. The cascade refers to how one level supersedes another.

Advantages

Disadvantages

Previous lesson | Next lesson


Top | Home