Quiz de HTML & CSS: Input Types & Validation

This HTML quiz covers input types like email, number and tel and the browser's built-in constraint validation. You will predict which values pass required, pattern, min and step, and why the server still has to check everything.

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

The user types hello and clicks Send. What happens?

<form action="/join">
  <input type="email" name="e">
  <button>Send</button>
</form>
Mostrar a resposta

B. The browser blocks the submission and shows a validation message A non-empty type="email" field must contain a valid email address, so the browser stops the submit and shows a message. Note that an empty field would pass, because the field is not required.

O que este quiz cobre

  • email, number, tel and what each one checks
  • required, pattern, min, max, step and maxlength
  • novalidate and client vs server validation
  • Placeholders vs labels
  • autocomplete tokens

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.