Media Query vs Responsive Breakpoint
People think a media query and a breakpoint are the same thing, and they are not. The breakpoint is the screen width where the layout should change. The media query is the CSS rule that makes the change happen at that width.
Media Query
A CSS rule that only works when a test is true, like a wide screen.
A media query is a CSS rule that only applies when a test is true. The most common test is the width of the screen. You write the styles for a phone first. Then a media query adds changes for wider screens, like more columns. It can also test for dark mode, printing or a reader who wants less motion.
Responsive Breakpoint
A screen width where a site's layout changes, like one column to two.
A responsive breakpoint is a screen width where a site's layout changes, like going from one column to two. It is set in CSS with a media query, a rule that checks the screen size. Good breakpoints are placed where the content starts to look wrong, not at the size of one popular phone. Most sites need only a few.
In one line
- Media Query
- A CSS rule that only works when a test is true, like a wide screen.
- Responsive Breakpoint
- A screen width where a site's layout changes, like one column to two.
These live in different corners of the glossary (Development and Design), which is exactly why they get confused.