Time Of Day Example
Stylesheets separate presentation from structure. In traditional HTML, elements like center and attributes like align were used to advise the browser how you would like your content layed out. With a stylesheet language like CSS (Cascading Stylesheets) one can associate presentation style information with markup elements.
Whether you use CSS, XSL, or HTML styles, do not depend on them to convey meaning. They only affect the presentation of the content for a particular medium. Ideally, your message should still be conveyed when printed on an 8 1/2" x 11" piece of paper, or by a speech synthesis device. Keep your style information simple. Make it qualitative, not quantitative. For example, use generic font names, like sans-serif, and relative font sizes. Envision how your document will look in grayscale.
For an excellent tutorial and introduction to CSS, visit Dave Raggett's intro to CSS .
For more information on styles, CSS, and XSL (the XML Stylesheet Language), visit the World Wide Web Consortium's Web Style Sheets home page.
Last Updated: February 3, 2003