Style Sheets are used to define the style of the document, for example the font and size of the text, colours, etc. which are then applied to the document as it is loaded onto the desktop. The term Style Sheets actually refers to a system of HTML tagging incorporated into your web documents, with several different ways of doing this:

Therefore for your web site, it is usual, to have your overall style defined by a Linked Style Sheet, and then on your web pages specific styles defined, by Inline and Embedded Style Sheets, on those aspects that are an exception on your site, e.g. a particular phrase you may want emphasising.

Styles can be used in many ways. Below are a few examples of controllable elements in styles sheets.

This is a normal 'p' tag, set with a 'class="block"'. The styles used are defined within the embedded style sheet on this page using a 'border' style tag, setting the style of the border and the color.
I've also set the margins around this element and changed the color of the text, the background and the internal padding. So now it no longer looks like a paragraph.

Advantages

Disadvantages

For a complete reference see the following website: http://www.w3.org/TR/1998/REC-CSS2-19980512/.

To view the style guide see this page.



© 1999 Nix Designs