A CSS Primer

Although the CSS style sheet mechanism was originally designed for use with HTML, it's just as good at formatting XML documents for presentation purposes. As a presentation style language, CSS defines style constructs like fonts, colors, and positioning, which are used to describe the presentation side of content-based data, such as the data stored in XML documents. One of the important ideas in CSS is that you can create a style sheet once for a given class of documents, and then you can display any document that belongs to that class using the style sheet. This approach allows you to isolate the presentation properties of a set of documents in a single location, making it much easier to maintain the documents (at least from a ...

Get XML Unleashed 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.