• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Style Sheets > Why Style Sheets Are Valuable

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 markup language will not be under pressure to evolve to include elements that describe how the content should look. Markup languages are free to be true markup languages that only describe the structure of the content.

  • Consistent rendering of content— Browsers vary slightly in how they render content, especially the logical text styles (emphasized text [<em>], keyboard input [<kbd>], and so on). By assigning specific style information to logical style elements in XHTML, Web page authors can be assured that their content will look the same on every browser.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint