Introduction to Cascading Style Sheets
CSS is a simple style sheet
mechanism that allows authors and readers to attach style (e.g. fonts, colors
and spacing) to HTML documents. The CSS language is human readable and writable,
and expresses style in common desktop publishing terminology.
One of the fundamental features of CSS is that style sheets cascade; authors
can attach a preferred style sheet, while the reader may have a personal style
sheet to adjust for human or technological handicaps.
Style sheets also offer much more flexibility in terms of the presentation effects that they provide. Properties such as color, background, margin, border, and many more can be applied to all elements. With just HTML and its proprietary extensions, one must rely on attributes like bgcolor, which are only available for a few elements. Style sheets give the flexibility of applying a style to all paragraphs, or all level-two headings, or all emphasized text.
With style sheets, authors can use the text-indent property to indent text, rather than resorting to ugly kludges like or (imag source="blank.gif") that carry with them many negative side-effects. Margins can be suggested without having to put the entire page in a table.
Style sheets also reduce the need for multi-file search and replace; if an author decides to change the indentation of all paragraphs on a site, he or she only has to change one line on a style sheet.
Style sheets represent an enormous step forward for the Web. With the separation of content and presentation between HTML and style sheets, the Web no longer needs to drift away from the strong ideal of platform independence that provided the medium with its initial push of popularity. Authors can finally influence the presentation of documents without leaving pages unreadable to users.
The number of browsers supporting Cascading Style Sheets continues to increase rapidly. Netscape Navigator 4.7 features a large amount of support for CSS1 and CSS Positioning and has promised complete support in the upcoming version 5. Microsoft Internet Explorer 5 has partial CSS1 support with a strong level of CSS1 and CSS Positioning implemented in IE4, accompanied by early support for CSS Printing. According to The Web Standards Project the browser that correctly interprets the most CSS is Opera, a new lean, fast browser from Norway. You can get more information about Opera at www.opera.com. Style sheet support on the UNIX platform has long existed with Emacs-W3 and Arena, and the W3C's Amaya browser combines CSS support with a "WYSIWYG" editor for making CSS-enhanced Web pages.
For an overview of the CSS Specification http://webreview.com/wr/pub/guides/style/glossary.html