HTML & CSS · Middle · Question 31 of 75

What's new about the @media (width >= 768px) syntax?

Explanation

Range syntax allows comparisons: (width >= 768px), (400px <= width < 1000px). It's shorter and avoids min/max confusion at the boundaries. All modern browsers support it, and Tailwind v4 generates breakpoints in this form. Container queries are written with @container.

Further reading

Problem with a question

HTML & CSS · Middle · question 31

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz