HTML & CSS-Quiz: 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.

Mittel 10 Fragen ~6 Minuten Bestanden ab 80%

Modus wählen

Du spielst als Gast: Melde dich an, damit XP und Serie gespeichert werden.

Beispielfrage

Frage 1 von 10

The user types hello and clicks Send. What happens?

<form action="/join">
  <input type="email" name="e">
  <button>Send</button>
</form>
Lösung zeigen

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.

Darum geht es in diesem 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

Häufige Fragen

Brauche ich ein Konto?

Nein. Jeder kann spielen. Mit Anmeldung werden XP, Serie, Abzeichen und Verlauf gespeichert.

Kann ich es wiederholen?

Ja. Dein Bestwert bleibt erhalten, und Fragen und Antworten werden jedes Mal neu gemischt.