Media type (CSS)

From Wiki @ Karl Jones dot com
Revision as of 08:51, 26 August 2016 by Karl Jones (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In Cascading Style Sheets (CSS), media type is a value used with media queries to indicate a particular type of medium for which the CSS is intended.

Description

Media type can be declared in the head of an HTML document using the "media" attribute inside of a link element.

The value of the "media" attribute specifies on what device the linked document will be displayed.

Media types can also be declared within XML processing instructions, the @import at-rule, and the @media at-rule.

CSS2 defines the following as media types:

  • all
  • braille
  • embossed
  • handheld
  • print
  • projection
  • screen
  • speech
  • tty
  • TV

See also

External links