Barrierepruefung.de Web Accessibility Checker

WCAG 2.4.2 Page Titled: explained simply

Every web page needs a title that describes its topic or purpose. Browsers show it in the tab or title bar, and it helps people find pages and tell them apart. For a document or web application, its name is enough.

Last reviewed: Sources

What does the criterion require?

Every web page has a title that describes its topic or purpose. This is the page title, which a browser may show in the window's title bar or as the name of the tab. In HTML it is the title element in the head of the page (H25). The title attribute, which almost any HTML element can carry, is something else.

A title tells people where they are without their having to read the page:

  • Everyone can see more quickly whether a page has what they need, including in a list of search results.
  • People with visual disabilities can tell several open pages apart.
  • People with cognitive disabilities, limited short-term memory or reading disabilities can identify content by its title.
  • It also helps people with severe mobility impairments who rely on audio when moving between web pages.

If the page is a document or a web application, the name of that document or application is enough to describe its purpose. Using that name is not mandatory; something else may describe the topic or purpose as well.

In a single-page application, several views share one address and a script swaps the content. The W3C's Understanding document says the title should then change too. In an appointment booking, the title would follow the view on screen, such as "Choose a time" and then "Your details".

What makes a good title

A W3C technique (G88) sets out what a page title should do: identify the subject of the page, make sense out of context, for example when read by a screen reader or seen in a list of search results, and be short. It may also help if the title names the site and is unique within it. One of the examples in the technique puts the most important information first: the topic of the page, then the group, then the organisation. For a library, that could be "Opening hours | Children's Library | Sampletown Library".

Naming the larger site in the title is advice from the W3C (G127), not part of the requirement. The Understanding document also calls it good practice for a link and the title of its target page to agree or be very similar. What link text itself has to do is covered by 2.4.4 Link Purpose (In Context).

Common failures

The W3C describes this failure in one technique (F25): the page has a title, but the title identifies neither the contents nor the purpose of the page. Its examples are:

  • Authoring tool defaults. Titles the tool fills in and nobody changes, such as "Untitled Document", "No Title" or "New Page 1" (F25).
  • Filenames. A filename that says nothing on its own, such as "report.html" (F25).
  • Empty or placeholder text. The title element is empty or holds nothing but filler (F25).
  • The same title on every page. A template gives each page of the site one and the same title, for example just the company name, so titles cannot be used to tell pages apart (F25).

A fifth case follows from the requirement: after a change of view, a single-page application keeps the title of the previous view, which describes something no longer on screen. The visitor is now in the shopping cart, but the tab still carries the name of the product they looked at before.

Checked automatically and checked by you

What the automated check detects

Coverage: extensive

The automated check covers most of this criterion, but not every case.

A title must exist - whether it describes the topic or purpose of the page is a judgement.

Rules

What you check yourself

You answer this question in the manual checks of your scan.

Does every page title name the topic or purpose of the page?

  1. Open the home page and several subpages of different kinds and read the page title of each: it is shown in the browser tab; hover over it to see it in full. The automatic check establishes that a title exists at all; whether it describes the page is for you to assess.
  2. The title must say what this page is about or what it is for, for example "Contact | Sampletown Public Library". A title that does not identify the content is a defect, such as "Untitled", "Page 3" or a file name. If quite different pages carry the same title, it usually describes none of them.
  3. If the page is a single document or a web application, its name is sufficient as a title. Also look at pages that are easily forgotten: search results, form steps, confirmation and error pages.

Classification

Level
A
Introduced in
WCAG 2.0
W3C explanation
Understanding 2.4.2