Prev | Current Page 44 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

In Eric Meyer??™s Complex Spiral Demo,11 the
user is able to select from one of many available alternative style sheets, as depicted
in Figure 1.3.
11 http://meyerweb.com/eric/css/edge/complexspiral/demo.html
What Is CSS?
11 What Is CSS?
Figure 1.3: Alternative style sheets in the Complex Spiral Demo
Using an Internal Style Sheet
The style element, which must reside within the head element of an HTML
document, specifies an internal style sheet which will only apply to elements in
the enclosing document:

The type attribute is required, and should have the value "text/css" which denotes
CSS styles. As in the case of external style sheets, the media attribute defaults to
"screen" if you omit it, according to the HTML4 specification, but in reality,
browsers seem to apply media="all" if the attribute is omitted.
Pre-HTML4 browsers don??™t support the