Квиз по 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.

Средний 10 вопроса ~6 минуты Проходной балл: 80%

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

What does the for attribute connect here?

<label for="email">Email</label>
<input id="email" type="email" name="email">
Показать ответ

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.

Что проверяет этот квиз

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

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.