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

Medio 10 domande ~6 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

The user types hello and clicks Send. What happens?

<form action="/join">
  <input type="email" name="e">
  <button>Send</button>
</form>
Mostra la risposta

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.

Cosa copre questo quiz

  • 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

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.