Web features explorer

Media queries

Widely available since 2018-01-29
Tags: css Groups: CSS > Media queries

The @media CSS rule conditionally applies styles based on the output device type, its capabilities, and the user's preferences. Media queries are composed of an optional media type such as screen or print, and one or more mandatory media features, such as prefers-reduced-animations.

Learning resources on MDN

Browser support (view on caniuse.com)