U of S | DCS | Courses | CAI | CSS | External Style Sheets

[Back] [Contents] [Next]


External Style Sheets


External Style Sheets are definitions stored in a file separate from the HTML documents, so it can be shared among many documents. Change the style sheet file, and the overall appearance of the entire site changes.

The disadvantage is that browsers have to load two files (the document, and the style sheet). Also, if the style sheet isn't there, then some browsers won't display your document.

For example, you might store the style definitions in the example shown previously in a file called "main.css". This could then be referred to using the commands shown in the next slide.


Please send comments about this course to Kevin.Lowey@Usask.CA