HTML Interview Questions

This HTML quiz collects classic interview questions: what the doctype does, defer vs async, strong vs b, data-* attributes, responsive images and more. Each answer comes with a short explanation you can repeat in an interview.

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 does <!DOCTYPE html> at the top of a page do?

Mostra la risposta

B. It makes the browser render the page in standards mode instead of quirks mode The doctype has one job today: without it, browsers use quirks mode, which emulates old rendering bugs (for example in the box model and table sizing). The encoding is set with <meta charset>.

Cosa copre questo quiz

  • The doctype, the viewport meta tag and standards mode
  • Loading scripts with defer and async
  • Semantic choices like strong vs b and links around block content
  • data-* attributes, id rules and lazy loading
  • Responsive images with srcset and the default button type

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.