HTML & CSS Responsive Design & Media Queries Quiz

This CSS quiz covers responsive design, from the viewport meta tag to media queries and container queries. You will predict which rules apply at a given screen width, avoid ordering traps, and size things fluidly with clamp() and max-width.

Medium 10 questions ~6 minutes Pass at 80%

Choose a mode

Playing as a guest: sign in to keep your XP and streak.

Sample question

Question 1 of 10

What happens on a phone if a page leaves out this tag?

<meta name="viewport" content="width=device-width, initial-scale=1">
Show the answer

B. The page is rendered at a wide virtual width (often 980px) and zoomed out, so media queries for small screens do not match Without the tag, mobile browsers lay the page out as if on a desktop-sized viewport and shrink it to fit. With width=device-width, the layout viewport matches the device so max-width: 600px queries apply.

What this quiz covers

  • The viewport meta tag
  • Mobile-first min-width queries and their exact breakpoints
  • Media queries, source order and specificity
  • Fluid sizes with clamp(), % and max-width: 100%
  • User preferences and container queries

Questions people ask

Do I need an account?

No. Anyone can play. Sign in to keep your XP, streak, badges and history.

Can I retake it?

Yes. Your best score is kept, and the questions and answers are shuffled each time.