Friday, July 4, 2008

<style> and <link>: the media attribute

Here are the possible values for the media attribute:
  • screen (default)
  • handheld
  • print
  • tv
  • projection
  • tty (text only)
  • aural
  • braille
  • embossed (Braille printers)
  • all
To choose more than one media, separate them with commas. Example: media="screen, print".
If you have separate stylesheets for different media, some browsers download all of them, regardless of the medium.

No comments: