HTML & CSS-Quiz: Labels & ARIA

This HTML quiz covers labels and ARIA attributes. You will connect labels to inputs, name icon buttons, describe fields and announce updates, and spot ARIA that makes a page harder to use instead of easier.

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

What does the for attribute connect here?

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

A. Its value matches the input's id, so clicking the label focuses the input and screen readers use the label as its name for points to the id of the control, not its name. The label then becomes the control's accessible name and a bigger click target, which helps a lot with small checkboxes.

Darum geht es in diesem Quiz

  • <label for> and wrapping labels
  • The first rule of ARIA
  • aria-label, aria-describedby and aria-live
  • aria-hidden and tabindex pitfalls
  • Keeping the accessible name in line with the visible text

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.