Руководства по правилам axe
document-titleseriousaxe-core 4.12.1

Fix document-title axe errors

The document has no non-empty title, making browser tabs, history and assistive navigation harder to understand.

Кого затрагивает

Screen-reader users, keyboard users, and anyone switching among multiple tabs, windows or history entries.

Связь с WCAG

2.4.2 Page Titled (A)

Обнаружение

wcagc reports HTML documents with no title element or an empty title.

Почему возникает эта ошибка

  • A route renders before its metadata is set.
  • A shared layout supplies the same title to every page.
  • A single-page application changes content without updating document.title.

Проблемная разметка

<head><title></title></head>

Исправленный код

<head><title>Pricing - Example SaaS</title></head>

Проверьте исправление вручную

Review the title in a tab list and browser history. Confirm that it identifies the specific page or task and updates after client-side route changes.

Границы автоматизации

A scanner can find a missing or empty title, but it cannot decide whether a generic title such as Home is sufficiently descriptive or unique across the site.

Источники и стандарты

Метаданные правила и ссылка Deque генерируются из axe-core 4.12.1. Ссылка W3C ведёт на нормативное руководство WCAG для соответствующего критерия.

Вопросы разработчиков

Should every route have a unique title?

Yes. Keep titles concise while identifying the page, task or record well enough to distinguish it from other tabs.

Does this matter for single-page applications?

Yes. Client-side navigation must update the document title just as a full page load would.

Проверьте отрисованную страницу

Одно нарушение редко встречается в одиночку

Запустите проверку страницы в wcagc, чтобы найти это правило, связанные проблемы WCAG, затронутые селекторы и пункты, требующие ручной оценки.

Проверить страницу