O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cascading Style Sheets (CSS)

The W3C has produced two Cascading Style Sheet Recommendations usually referred to as CSS1 and CSS2. Full details of those recommendations can be accessed at:

http://www.w3.org/TR/1999/REC-CSS1-19990111

http://www.w3.org/TR/1998/REC-CSS2-19980512

Note

The URL given for CSS1 is correct. It was first issued in December 1996 and was revised in January 1999. The URL for the updated version, CSS2, appears before this note.

In addition to the two CSS Recommendations from W3C, work is currently underway on CSS3.

Applying CSS to XML

Cascading Style Sheets allow you to add some formatting to an XML file.

The original XML file from Chapter 10 looked like this:

 <?xml version="1.0"?> <message> <to>All visitors</to> <greeting>Hello ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required