Linking to Style Information in a Separate File

One important thing to realize is that you don't have to store your style sheet information inside each of your XHTML documents. If you anticipate applying the same styles across several XHTML pages, it is much more efficient for you to store the style information in one place and have each XHTML document linked to it. This makes it much easier to change the formatting of all your pages by changing the style sheet instead of changing every page.

Setting Up the Style Information

To set up a linked style sheet, you first need to create the file with the style information. This takes the form of a plain-text file with style information entries. Each entry starts with an XHTML element, followed by ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.