Adding Cascading Style Sheets to Documents


Like their counterparts in word processing and desktop publishing programs, style sheets are supposed to simplify the deployment of fine-tuned formatting associated with HTML content. Instead of surrounding every H1 element in a document with <font> tags to make all of those headings the same color, you can use a one-line style definition in a style sheet to assign a color to every instance of the H1 element on the page. This puts the purpose of tagging in its proper place: assigning context within a document via HTML markup, while rules governing the appearance of data within that context belong to the style sheet.




Dynamic HTML. The Definitive Reference
Dynamic HTML: The Definitive Reference
ISBN: 0596527403
EAN: 2147483647
Year: 2004
Pages: 120
Authors: Danny Goodman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net