31.03.2014 Views

Cascading Style Sheets, Level 2 - World Wide Web Consortium

Cascading Style Sheets, Level 2 - World Wide Web Consortium

Cascading Style Sheets, Level 2 - World Wide Web Consortium

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.3.9 Frequencies<br />

Frequency values (denoted by in the text) are used with aural<br />

cascading style sheets [p. 277] .<br />

Their format is a immediately followed by a frequency unit identifier.<br />

Frequency unit identifiers are:<br />

Hz: Hertz<br />

kHz: kilo Hertz<br />

Frequency values may not be negative.<br />

For example, 200Hz (or 200hz) is a bass sound, and 6kHz (or 6khz) is a treble<br />

sound.<br />

4.3.10 Strings<br />

Strings can either be written with double quotes or with single quotes. Double<br />

quotes cannot occur inside double quotes, unless escaped (as ’\"’ or as ’\22’).<br />

Analogously for single quotes ("\’" or "\27").<br />

Example(s):<br />

"this is a ’string’"<br />

"this is a \"string\""<br />

’this is a "string"’<br />

’this is a \’string\’’<br />

A string cannot directly contain a newline. To include a newline in a string, use<br />

the escape "\A" (hexadecimal A is the line feed character in Unicode, but represents<br />

the generic notion of "newline" in CSS). See the ’content’ property for an<br />

example.<br />

It is possible to break strings over several lines, for aesthetic or other reasons,<br />

but in such a case the newline itself has to be escaped with a backslash (\). For<br />

instance, the following two selectors are exactly the same:<br />

Example(s):<br />

A[TITLE="a not s\<br />

o very long title"] {/*...*/}<br />

A[TITLE="a not so very long title"] {/*...*/}<br />

4.4 CSS document representation<br />

A CSS style sheet is a sequence of characters from the Universal Character Set<br />

(see [ISO10646]). For transmission and storage, these characters must be<br />

encoded by a character encoding that supports the set of characters available in<br />

US-ASCII (e.g., ISO 8859-x, SHIFT JIS, etc.). For a good introduction to character<br />

sets and character encodings, please consult the HTML 4.0 specification<br />

([HTML40], chapter 5), See also the XML 1.0 specification ([XML10], sections 2.2<br />

and 4.3.3, and Appendix F.<br />

When a style sheet is embedded in another document, such as in the STYLE<br />

element or "style" attribute of HTML, the style sheet shares the character encoding<br />

of the whole document.<br />

50

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

Saved successfully!

Ooh no, something went wrong!