A CSS media type names a set of CSS properties. A user agent that claims to support a media type by name must implement all of the properties that apply to that media type.
The names chosen for CSS media types reflect target devices for which the relevant properties make sense. In the following list of CSS media types, the parenthetical descriptions are not normative. They only give a sense of what device the media type is meant to refer to.
- all
- Suitable for all devices.
- aural
- Intended for speech synthesizers. See the section on aural style sheets for details.
- braille
- Intended for braille tactile feedback devices.
- embossed
- Intended for paged braille printers.
- handheld
- Intended for handheld devices (typically small screen, monochrome, limited bandwidth).
- Intended for paged, opaque material and for documents viewed on screen in print preview mode. Please consult the section on paged media for information about formatting issues that are specific to paged media.
- projection
- Intended for projected presentations, for example projectors or print to transparencies. Please consult the section on paged media for information about formatting issues that are specific to paged media.
- screen
- Intended primarily for color computer screens.
- tty
- Intended for media using a fixed-pitch character grid, such as teletypes, terminals, or portable devices with limited display capabilities. Authors should not use pixel units with the "tty" media type.
- tv
- Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available).
Media type names are case-insensitive.
Due to rapidly changing technologies, CSS2 does not specify a definitive list of media types that may be values for @media.
Note. Future versions of CSS may extend this list. Authors should not rely on media type names that are not yet defined by a CSS specification.
7.3.1 Media groups
Each CSS property definition specifies the media types for which the property must be implemented by a conforming user agent. Since properties generally apply to several media, the "Applies to media" section of each property definition lists media groups rather than individual media types. Each property applies to all media types in the media groups listed in its definition.
CSS2 defines the following media groups:
- continuous or paged. "Both" means that the property in question applies to both media groups.
- visual, aural, or tactile.
- grid (for character grid devices), or bitmap. "Both" means that the property in question applies to both media groups.
- interactive (for devices that allow user interaction), or static (for those that don't). "Both" means that the property in question applies to both media groups.
- all (includes all media types)
The following table shows the relationships between media groups and media types:
Media Types | Media Groups | |||
---|---|---|---|---|
continuous/paged | visual/aural/tactile | grid/bitmap | interactive/static | |
aural | continuous | aural | N/A | both |
braille | continuous | tactile | grid | both |
emboss | paged | tactile | grid | both |
handheld | both | visual | both | both |
paged | visual | bitmap | static | |
projection | paged | visual | bitmap | static |
screen | continuous | visual | bitmap | both |
tty | continuous | visual | grid | both |
tv | both | visual, aural | bitmap | both |