Перейти к основному содержимому
← 📄 HTML & the platform·Модуль A5 · Урок 12
ЗаданиеFix the seven a11y violations. Add: alt on the img, aria-label on the icon button, aria-describedby on the email input pointing to #err, #err id on the error p, change the link color from #ccc to #595959, replace outline:none with a :focus-visible style on button.cta (outline 2px solid #3B82F6), add aria-live='polite' to #counter, and add <a class='skip-link' href='#main' style='position:absolute;top:8px;left:8px'>Skip</a> at the top.

Завершающий этап модуля: аудит неработающей страницы

200 XP15 min
Теория

Putting A5 together

Audit the starter HTML/CSS. It has seven a11y violations from this module's lessons. Fix all seven and your build passes.

The violations:

  1. The image has no alt attribute.
  2. The icon button has no aria-label and no visible text.
  3. The error message isn't linked to its input via aria-describedby.
  4. The link uses light gray that fails contrast (3.2:1 needs 4.5:1).
  5. The button has outline: none with no replacement focus style.
  6. The dynamically-updated counter isn't marked aria-live.
  7. There's no skip-to-content link.

Apply lessons 1-11 to fix each. The Check button verifies all seven simultaneously.

🔒

Зарегистрируйся чтобы кодить

Теория открыта всем. Интерактивный редактор, живой превью и проверка открываются с 7-дневным бесплатным trial — нужна карта, отмена в любое время.

Регистрация — бесплатный trial →

Первые 10 уроков в каждом треке — бесплатные. Карта не нужна.

← НазадСледующий урок →

Получай один совет по Python или веб-разработке — каждый день в почте

Коротко, без воды, без спама. Отписаться — в один клик.