CSSMediatypes
CSSMediatypes
One of the most important features of style sheets is that they specify how
a document is to be presented on different media: on the screen, on paper,
with a speech synthesizer, with a braille device, etc.
We have currently two ways to specify media dependencies for style sheets
−
Specify the target medium from a style sheet with the @media or @import at-
rules.
<style tyle="text/css">
<!--
@media print {
@media screen {
-->
</style>
The Document Language
In HTML 4.0, the media attribute on the LINK element specifies the target
media of an external style sheet −
Following is an example −
<style tyle="text/css">
<!--
<html>
<head>
</head>
<body>
<p>the body...
</body>
</html>
-->
</style>
print Intended for paged, opaque material and for documents viewed on
screen in print preview mode. Please consult the section on paged
media.