Skip to content
easeweb
Search topics

Page titles that are the same on every page

The site's layout sets one title for every page, and the router never changes it, so every tab, bookmark and history entry reads the same.

WCAG 2.2
SC 2.4.2A
Required by
Section 508 · EN 301 549 (EU)
Broken <title>Fernway Garden</title>
The accessibility problem illustrated: No vision:Which tab is the basket?
01

The problem

People with several tabs open, and screen reader users, cannot tell which page they are on or which tab to return to

02

Try it

Find the tab with your basket in it

Each tab shows its page’s title. Use the shop’s links to change page, and watch the tab.

Broken Can you fix this?

BrokenOne title for every page

Contact

Write to us, or visit the shop.

Screen reader, on switching to this tab:

Fernway Garden

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Give every view a title that names it before the site name

Before
BrokenOne title for every page
<!-- app.html, the shared layout --><head>  <title>Fernway Garden</title></head>
What is wrong2 points
  • Nothing tells a tab, a bookmark or a screen reader which page this is: every view, from a product list to the basket, has the same title.
  • The shared layout sets one title, Fernway Garden, and the router never changes it.
After

A title in each page's template

<!-- app.html, the shared layout: no title, each page sets its own --><head>  …</head>
How it is fixed3 steps
  1. Take the title out of the shared layout.
  2. Give each page's template its own title, sent in its HTML, so it is there before any script runs and in every browser.
  3. Put the page's name first and the site's name after it, so it stays visible in a narrow tab and is the first thing a screen reader says.

This fixes the Before and passes 2.4.2.

HTML and ARIA
04

Verify the fix

5 checks, no mouse.

Test with: Screen reader

0 of 5 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat when routes or templates are added.

Limits

This is a starting pattern, not a guarantee for every application. Whether a title describes a page is a judgement no tool makes; read the titles as a visitor would. Apps that open content in iframes or new windows need titles there too. Test the complete journey on your real pages.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service