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.

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

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

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

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

Вопрос 1 из 10

Clicking the label does not focus the input. Why?

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

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.

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

  • 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

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

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

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

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

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