Quiz de 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.

Fácil 10 perguntas ~5 minutos Aprovação com 80%

Escolha um modo

Jogando como visitante: entre para guardar seu XP e sua sequência.

Pergunta de exemplo

Pergunta 1 de 10

What does <!DOCTYPE html> at the top of a page do?

<!DOCTYPE html>
<html lang="en">
  ...
</html>
Mostrar a resposta

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.

O que este quiz cobre

  • 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

Perguntas frequentes

Preciso de uma conta?

Não. Qualquer pessoa pode jogar. Entre para guardar seu XP, sequência, badges e histórico.

Posso refazer?

Pode. Sua melhor nota fica salva, e as perguntas e respostas são embaralhadas a cada vez.