Why Style Sheets Are Valuable

Simply put, style sheets separate content and presentation. Apart from being necessary for specifying style information for XHTML documents adhering to the Strict Document Type Definition (DTD), it gives Web page designers precise control over how their content appears onscreen. Other benefits of style sheets include

  • Central repositories of style information— If you use a standard set of styles on all your pages, you can store the corresponding style information in one file. This way, if you must edit the style information, you have to make the change in only one place instead of in every file.

  • No pressure to extend the markup language— By capturing all presentation-related information in style sheets, the associated ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.