Quiz di HTML & CSS: Document Structure & DOCTYPE

This HTML quiz checks the skeleton every page shares. You will look at short snippets and decide what belongs in the head, what the DOCTYPE does and how the browser handles markup that is incomplete or badly nested.

Facile 10 domande ~5 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?

<!DOCTYPE html>
<html lang="en">
  ...
</html>
Mostra la risposta

B. Makes the browser render the page in standards mode instead of quirks mode The DOCTYPE only switches the browser into standards (no-quirks) mode. Without it, browsers emulate old, buggy layout rules; it does not load anything and has nothing to do with the server.

Cosa copre questo quiz

  • What <!DOCTYPE html> does
  • What goes in <head> and what goes in <body>
  • Declaring the page language and character encoding
  • Void elements, comments and nesting
  • How the browser fills in missing tags

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.