- Level
- A
- Since
- WCAG 2.0
- Entries
- 8 / 193
2.4.2 Page Titled
Every page needs a title that says what the page is, because that is what a screen reader and a browser tab announce.
/ What it requires
The title element in the head of the document is the first thing a screen reader announces when a page loads, and it is the label on the browser tab, the bookmark, the history entry and the search result. Someone who cannot glance at the screen relies on it to confirm they arrived in the right place and to tell several open tabs apart. People with memory or attention difficulties use it to find their way back.
The page passes when it has a title that describes its topic or purpose. WCAG sets no length and no format. A title that is missing, empty, a leftover such as Untitled or the file name, or identical on every page of the site does not describe anything and fails. Putting the page-specific part first and the site name after it is recommended practice, not a requirement of the criterion.
/ How pages fail it
- The head has no title element, so the browser shows the URL in the tab.
- The title element is present but empty.
- Every page carries the same title, usually just the name of the organisation.
- The title is a template leftover such as Untitled, Home or New page.
- A single-page application changes the view without updating document.title, so the title describes a page the user has left.
/ How to check it yourself
- Open the page and read the browser tab, or hover over it to see the full text. Compare it with what the page is about.
- Open three or four different pages of the site in tabs and check that you can tell them apart by the tabs alone.
- In the DevTools console type document.title to see the exact string, including on views loaded without a full page reload.
- Start a free screen reader such as NVDA and load the page: the title is the first thing read, and Insert+T repeats it.
/ How to fix it
- Add one title element inside head on every page, with text that names this page.
- Write the unique part first and the site name second, for example Contact - City Library, so the difference is heard straight away and survives a narrow tab.
- In a single-page application, set document.title on every route change.
- For multi-step forms and search results, put the step or the query in the title, such as Step 2 of 4 or Results for parking permit.
- Give PDF files a title in the document properties and set the file to display that title instead of the file name.
/ What our scanner checks
Three checks look for a missing title. page-no-title reads document.title in the rendered page and reports it when it is empty. The HTML_CodeSniffer rule H25.1 reports a head with no title element, and the axe-core rule document-title reports a document without a non-empty title. None of them can judge whether the words describe the page or whether every page shares the same title.
/ Who fails it, in our own measurements
| Body | Sector | Instances | Score |
|---|---|---|---|
| Narodowy Bank Polski | government · PL | 3 | 23 |
| Łódź | city · PL | 3 | 3 |
| Sejm RP | government · PL | 2 | 9 |
| Krajowa Administracja Skarbowa | government · PL | 1 | 5 |
| Kraków | city · PL | 1 | 12 |
| Najwyższa Izba Kontroli | government · PL | 1 | 41 |
| New York Public Library | culture · US | 1 | 24 |
| Sąd Najwyższy | government · PL | 1 | 14 |
One page per body, measured by automated checks on a weekly schedule. Any body that has fixed something since the last sweep will show it at the next one, and every entity page carries a right of reply.
/ Questions about this criterion
What is the difference between the title element and the h1?
The title element sits in the head, is not shown in the page body, and labels the tab, the bookmark and the search result. The h1 is the visible main heading in the content. 2.4.2 is about the title element. The two usually say similar things, but the title often adds the site name, which the h1 does not need.
How long should a page title be?
WCAG gives no limit. The requirement is that the title describes the topic or purpose of the page. In practice a short title with the page-specific words first works best, because a screen reader reads it from the start every time and a browser tab cuts off whatever does not fit.
Can two pages have the same title?
The criterion does not ban it in so many words, but each title must describe its own page, and two different pages rarely have the same topic or purpose. When every page shares one title, such as the company name, none of them is described and all of them fail. Add the page-specific part to each.
