HTML & CSS: Find the Bug

In this quiz every snippet has one bug that breaks the intended result. You will find mismatched labels, selectors with a stray space, invalid nesting, ignored values and rules that lose the cascade, the kind of bugs that waste an afternoon in real HTML and CSS.

Schwer 10 Fragen ~8 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

Clicking the label does not focus the input. Why?

<label for="email">Email</label>
<input type="email" id="e-mail" name="email">
Lösung zeigen

C. for must match the input's id, but email and e-mail are different The for attribute points to an id, not a name. Fix it with id="email", or wrap the input inside the label so no for is needed.

Darum geht es in diesem Quiz

  • Labels, IDs and case-sensitive selectors
  • Invalid HTML nesting the parser fixes for you
  • Selectors and declarations that silently do nothing
  • Media query order and the cascade
  • Centering, percentage heights and flex containers

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.