document-title
Description
Every HTML document must have a non-empty <title> element inside its <head>. The document title is the first thing screen readers announce when a page loads, and it is used by browsers in the window or tab title bar. A missing or empty title leaves users of assistive technologies without context about which page they are on.
Example
In the following example, the page has no <title> element. When a screen reader user navigates to this page, no title is announced, making it impossible to distinguish from other pages. This breaks the document-title rule.
In contrast, the following code snippet includes a descriptive <title> that identifies both the page and the site. Screen readers announce this title when the page loads, and the code does not break the document-title rule.
How to fix?
Check if all your pages have a non-empty <title> element in the <head>. If not:
- Add a
<title>element inside the<head>of the page. This is required. - Write a title that describes the page’s purpose or content, ideally in the format
Page Name - Site Name. - Ensure that the title is unique across all pages on your site so users can distinguish between tabs or browser history entries.
Reference
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!