Intermediate HTML & CSS
Q48 / 100

What does a CSS media query like "@media (max-width: 600px) { ... }" do?

Correct! Well done.

Incorrect.

The correct answer is A) Applies the enclosed styles only when the viewport width is 600px or less

A

Correct Answer

Applies the enclosed styles only when the viewport width is 600px or less

Explanation

Media queries apply CSS conditionally based on characteristics of the device/viewport, here applying styles only when the viewport is 600px wide or narrower — common for responsive design.

Progress
48/100