Formal Style Property Specifications

We've seen quite a few CSS examples in this chapter. When you get more serious about CSS, you're going to need very in-depth information. For that reason, the rest of this chapter covers the most commonly used CSS styles and their formal specifications.

The W3C CSS style specifications give the possible values that CSS properties can take, the default value of those properties, and so on. The syntax that the W3C specifications use is a little complex. Here's an example—the style specification for the background-color property.

background-color

  • CSS1 values: <color>|transparent

  • CSS2 values: inherit

  • Default value: transparent

  • Element support: All elements

  • Browser support: [IE4, IE5, NS4]

  • Style inherited: No

Here ...

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