WCAG Encyclopedia

2.4.2 · OperableLevel A

Page Titled

Every page needs a title that describes it. It is the first thing a screen reader announces, and the only thing distinguishing twenty open tabs or twenty history entries.

Principle
Operable
Guideline
2.4
Level
A
In WCAG since
2.0
Number
2.4.2

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: The same title on every page.
AcmeAcmeAcme

Three tabs, indistinguishable. In a single-page app the title often never updates at all after the first load, which produces exactly this.

Fixed: Specific first, site name last.
Basket (3) — AcmeDelivery — AcmeOrder confirmed — Acme

The distinguishing part comes first, because a narrow tab and a screen reader both truncate the end.

How to test

Check your own interface against 2.4.2, one step at a time.

  1. Open the page and read the title in the browser tab. Hover over the tab if it is cut off.
  2. Check that the title says what the page is about or what it is for, such as the article headline or the step of a form, and not only the site name.
  3. Open two other pages of the same site and compare their titles. Check that each one tells its page apart from the others.
  4. In a single-page app, move to another view and check that the title in the tab changes with it.
  5. Turn on a screen reader (NVDA on Windows, VoiceOver on a Mac) and load the page. Listen for the title it reads first, and check that it makes sense heard alone.

Common questions

Does the h1 count as the page title for 2.4.2?

No. 2.4.2 is about the title element, which appears in the browser tab, in bookmarks and in search results, and which a screen reader reads first. A page needs a descriptive h1 for other reasons, but the title element has to describe the page too.

Must every page title be unique?

No, the criterion does not say so, but a title that tells a page apart from the others is what it is for. Ten tabs all called "Home" do not help anyone find the page they wanted.

Does a single-page app have to change the title when the view changes?

Yes. Each view is a page as far as the person is concerned, so the title has to describe the view they are on. Update document.title each time the route changes.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: title the page

How to use this lab

  1. Goal. Give a checkout page a title that says which page it is.
  2. The controls. The options under “The page’s title” set the title of the mock Delivery details page: Empty, Generic (“Acme”) or Descriptive (“Delivery details — Acme”). The browser tab shows it, and the log says what a screen reader reads on switching to that tab.
  3. Try this. The lab starts on Generic, which fails. Pick Empty, then Descriptive, and compare what the screen reader says each time.
  4. What it means. Only Descriptive passes 2.4.2: the title says which page this is. Empty and Generic fail, because someone moving between tabs, or hearing the title read first, can’t tell this page from the others. The verdict line under the lab says which.
The page’s title

Switching to its tab, a screen reader says

  1. Acme

2.4.2 fails

Also in guideline 2.4

Criteria in the same guideline often fail together.