Prev | Current Page 40 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

1. The
specification reserves the speech media type, but says nothing about which properties
apply to it and which don??™t. Therefore, aural style sheets will not be covered in this
reference.
Referencing an External Style Sheet Using a link Element or @import
At-rule
Here??™s an example of an external style sheet reference that uses a link element:
The Ultimate CSS Reference 8
media="screen">
The link element, which must reside within the head element of an HTML
document, links an external style sheet to the document. Multiple, comma-separated
media types can be specified in the media attribute, for example,
media="screen,projection". If it??™s omitted, this attribute defaults to
media="screen", according to the HTML4 specification, but in reality, browsers
seem to apply media="all" if the attribute is omitted.
Here??™s an example of a style sheet reference that uses an @import at-rule (p. 49):