22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 2: An introduction to <strong>CSS2</strong><br />

The introduction includes a brief tutorial on <strong>CSS2</strong> and a discussion of design<br />

principles behind <strong>CSS2</strong>.<br />

Sections 3 - 20: <strong>CSS2</strong> reference manual.<br />

The bulk of the reference manual consists of the <strong>CSS2</strong> language reference.<br />

This reference defines what may go into a <strong>CSS2</strong> style sheet (syntax, properties,<br />

property values) and how user agents must interpret these style sheets<br />

in order to claim conformance [p. 32] .<br />

Appendixes:<br />

Appendixes contain information about a sample style sheet for HTML 4.0<br />

[p. 291] , changes from CSS1 [p. 293] , implementation and performance<br />

notes [p. 295] , the grammar of <strong>CSS2</strong> [p. 309] , a list of normative and informative<br />

references [p. 313] , and three indexes: one for properties [p. 317] ,<br />

one for descriptors [p. 323] , and one general index [p. 325] .<br />

1.3 Conventions<br />

1.3.1 Document language elements and attributes<br />

CSS property, descriptor, and pseudo-class names are delimited by single<br />

quotes.<br />

CSS values are delimited by single quotes.<br />

Document language element names are in uppercase letters.<br />

Document language attribute names are in lowercase letters and delimited<br />

by double quotes.<br />

1.3.2 CSS property definitions<br />

Each CSS property definition begins with a summary of key information that<br />

resembles the following:<br />

’property-name’<br />

Value<br />

Value: legal values & syntax<br />

Initial: initial value<br />

Applies to: elements this property applies to<br />

Inherited: whether the property is inherited<br />

Percentages: how percentage values are interpreted<br />

Media: which <strong>media</strong> groups the property applies to<br />

This part specifies the set of valid values for the property. Value types may be<br />

designated in several ways:<br />

1. keyword values (e.g., auto, disc, etc.)<br />

2. basic data types, which appear between "" (e.g., ,<br />

, etc.). In the electronic version of the document, each instance<br />

of a basic data type links to its definition.<br />

3. types that have the same range of values as a property bearing the same<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!