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.

Media 10 preguntas ~6 minutos Se aprueba con 80%

Elige un modo

Juegas como invitado: inicia sesión para guardar tu XP y tu racha.

Pregunta de ejemplo

Pregunta 1 de 10

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

Ver la respuesta

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

Qué cubre este 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

Preguntas frecuentes

¿Necesito una cuenta?

No. Cualquiera puede jugar. Inicia sesión para guardar tu XP, racha, insignias e historial.

¿Puedo repetirlo?

Sí. Se guarda tu mejor puntuación, y las preguntas y respuestas se mezclan cada vez.