C & G web

Cascading Style Sheets

Adding Style Sheets to the Document

The HTML document and the Style Sheet must be combined so that they can work together to produce the whole document. There are four ways to do this:

  1. Apply the style sheet to the whole document by using the STYLE element;

  2. Apply a style sheet to an individual element using the STYLE attribute;

  3. Link an external style sheet to the document using the LINK element;

  4. Import a style sheet using the CSS @import notation.

To look at what we can do with rules, we will use just the first three methods on this course.

 
<--- Previous Page Next Page --->

Previous page...

Computeach International Ltd

Christopher Ward London Limited

Christopher Ward London Limited