Quiz di HTML & CSS: Responsive Design & Media Queries

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.

Medio 10 domande ~6 minuti Superato con il 80%

Scegli una modalità

Stai giocando come ospite: accedi per salvare XP e serie.

Domanda di esempio

Domanda 1 di 10

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

<meta name="viewport" content="width=device-width, initial-scale=1">
Mostra la risposta

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.

Cosa copre questo quiz

  • 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

Domande frequenti

Serve un account?

No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.

Posso rifarlo?

Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.