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

Médio 10 perguntas ~6 minutos Aprovação com 80%

Escolha um modo

Jogando como visitante: entre para guardar seu XP e sua sequência.

Pergunta de exemplo

Pergunta 1 de 10

What does the for attribute connect here?

<label for="email">Email</label>
<input id="email" type="email" name="email">
Mostrar a resposta

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.

O que este quiz cobre

  • <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

Perguntas frequentes

Preciso de uma conta?

Não. Qualquer pessoa pode jogar. Entre para guardar seu XP, sequência, badges e histórico.

Posso refazer?

Pode. Sua melhor nota fica salva, e as perguntas e respostas são embaralhadas a cada vez.