Creating CSS Style Sheets
Before you create a CSS style sheet consisting of style rules, you must decide how you want to associate the style sheet with XML documents. There are two main methods available for associating CSS style sheets with documents:
External style sheets
Document-level style sheets
Although XML supports both of these approaches to referencing style sheets, I am in favor of the first approach because it provides the cleanest separation between the content of a document and its presentation. It also facilitates the usage of a single style sheet with multiple documents, which is one of the main benefits of using style sheets in the first place. Document-level style sheets aren't all wrong—they can save you time when you're developing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access