The screen media type targets on-screen presentation—monitors, laptops, tablets, and phones. Use it inside @media when styles should apply on a display, not when printing.
It is a media type (the broad output category), not a media feature. Combine it with features such as width for responsive layouts: @media screen and (max-width: 600px).
Deprecated Old media types
Types such as tty, tv, projection, handheld, braille, embossed, and aural are deprecated in Media Queries Level 4—do not use them. Prefer screen, print, and all plus media features.
Note Type is often optional
If you omit the media type, all is implied. Write screen when you need to exclude print (or other types) clearly.
Syntax
CSS Syntax
syntax.css
@mediascreen | only screen | screen and (feature) | screen, print { … }
Join a type to features with and. Separate multiple types with commas (logical OR).
Split by type. Two @media blocks target different media.
Screen uses px. Comfortable reading size on displays.
Print uses pt. Print-friendly sizing for paper.
One active at a time. The browser picks the matching type.
Edge Cases & Pitfalls
Small details that change how screen queries behave.
type vs feature
Not the same as width
screen names the medium. Responsive breakpoints still need features like width.
omit
Omitting the type means all
@media (max-width: 600px) can apply in print too. Add screen if print should stay unaffected.
only
only needs a type
Write only screen and (max-width: 600px). Do not use only without a media type.
legacy
Skip deprecated types
Do not use handheld, tv, or similar. Prefer features such as pointer or scan.
a11y
Prefer em in breakpoints
Length features work better with em when users enlarge text, so breakpoints scale with font size.
Compatibility
Browser Support
screen is a browser media type. Node.js, Deno, and Bun do not evaluate it.
✓ Baseline · Widely available
screen
Supported in all major browsers for decades. It is a foundation of responsive CSS alongside width-based features.
99%All modern browsers
Google ChromeAll
Full
Mozilla FirefoxAll
Full
Apple SafariAll
Full
Microsoft EdgeAll
Full
OperaAll
Full
Samsung InternetAll
Full
Internet ExplorerAll
Full
@media screenUniversally supported
Bottom line: Safe for production. Use screen to separate display styles from print; pair with features for responsive layouts.
Remember
Key Takeaways
Role: target on-screen displays with @media screen.
Pair:screen and (feature) for breakpoints; print for paper.
Default: omitting the type implies all.
Tip: avoid deprecated types; use modern media features instead.
One line:screen names the display medium—add features for responsive behavior, and use print for paper.
Frequently Asked Questions
It targets continuous on-screen presentation—monitors, laptops, tablets, and phones. Rules inside @media screen { } apply on a display, not when printing.
screen is a media type (the output medium). Features like max-width or orientation describe capabilities. Combine them: @media screen and (max-width: 600px) { }.
Usually no. If you omit the type, all is implied. Write screen explicitly when you want to keep screen rules separate from print.
screen is for displays. print is for paged output and print preview. Use each type for different fonts, colors, and layout.
only requires the whole query to match and historically stopped older browsers from treating screen and (feature) as just screen. You must pair only with a media type.
No. It is a CSS media type evaluated by the browser, not a Node.js or server runtime feature.