The correct syntax for a media query targeting screens wider than 600px uses @media screen and (min-width: 600px). Option A correctly uses parentheses and the min-width feature.
Option A targets screens smaller than or equal to 600px (max-width). Option A is missing a colon after min-width and parentheses. Option A is missing parentheses around the condition.
@media (max-width: 480px) { p { font-size: 1.2rem; } }What is the effect of this media query?
The media query applies styles when the screen width is 480 pixels or less. So paragraphs get a larger font size only on small screens like phones.
div.container { display: flex; flex-direction: row; } @media (max-width: 700px) { div.container { flex-direction: column; } }What happens to the layout when the screen width is 650px?
When the screen is 650px wide, which is less than 700px, the media query changes the flex direction to column, stacking children vertically.
The prefers-contrast: more media feature detects if the user prefers higher contrast, often related to accessibility needs like low vision. Increasing font size here helps readability.
Other options relate to motion, screen resolution, or hover capability, not text size preferences.
body { background-color: white; } @media (min-width: 600px) and (max-width: 900px) { body { background-color: lightgray; } } @media (min-width: 850px) { body { background-color: darkgray; } }What background color will the body have when the screen width is exactly 800px?
At 800px, the first media query (min-width: 600px and max-width: 900px) applies, setting background to lightgray.
The second media query requires min-width: 850px, which 800px does not meet, so darkgray is not applied.
Therefore, the background is lightgray.