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

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

What does the for attribute connect here?

<label for="email">Email</label>
<input id="email" type="email" name="email">
Mostra la risposta

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.

Cosa copre questo 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

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.