Media Query
A media query conditionally applies CSS according to characteristics of the output environment or viewport.
Media queries are commonly used for responsive layouts, motion preferences, color schemes, pointer capabilities and print styles.
Conditional CSS based on environment
Media queries are commonly used for responsive layouts, motion preferences, color schemes, pointer capabilities and print styles. In practical terms, Media Query belongs to the presentation and layout layer. Knowing that layer is important because it tells you what the term can change, what it cannot change, and where to look when something behaves unexpectedly.
Changing rules at a viewport threshold
@media (max-width: 760px) can switch a two-column layout to one column when the viewport becomes narrow.
Where media conditions alter a layout
You do not need to memorize the term in isolation. It becomes useful when you can recognize it in the tool, browser, file or conversation where the concept is doing real work.
A media query is not responsive design by itself
A media query conditionally applies CSS according to characteristics of the output environment or viewport. By contrast, A breakpoint is a chosen condition, usually a viewport width, at which a responsive layout changes. The two can appear in the same project, but they describe different parts of the work and should not be used as interchangeable labels.
The mistake: collecting arbitrary breakpoints
The common mistake is to use Media Query as if it also meant Breakpoint. That blurs two separate decisions and usually sends troubleshooting in the wrong direction. A better test is practical: Test immediately above and below the breakpoint and make sure content, not a device model, justifies the threshold.
Why conditions should follow content needs
In day-to-day work, Media Query matters when styles change according to viewport or device characteristics. The practical value is not the vocabulary itself; it is being able to identify the right control, file, setting or decision when the concept becomes relevant.
@media (max-width: 760px) can switch a two-column layout to one column when the viewport becomes narrow. That example is useful because it turns the definition into something you can recognize, test and discuss with other people working on the same project.
Related terms worth learning next
Sources and further reading
Use these references when you need documentation-level detail, specifications or product-specific behavior beyond the plain-English explanation above.