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.

Médio 10 perguntas ~6 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?

Mostrar a resposta

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

O que este quiz cobre

  • 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

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.