Live demo

Switch pages and read the browser tabs

The same task, done two ways: switch between the version that passes and the one that fails, or put them side by side. Everything in the box is live, so try it with a keyboard, a pointer or a screen reader.

Open each page of the small bank site and read its title in the tab strip. Try to tell which tab is which without looking at the page.

Live example

Passes

Personal banking

Open a current account, save for later or borrow for a new home.

Savings accounts

Compare our easy access and fixed rate savings accounts.

Contact us

Chat with us in the app at any time, or visit one of our branches.

What happened

    Why it passes

    Each title names the page first and the bank second. A screen reader announces Savings accounts when that page opens, and tabs, bookmarks and history entries can all be told apart.

    Why it fails

    All three pages are titled Northbank. A screen reader user hears the same name whichever page opens, and three open tabs look exactly alike.

    Examples

    Code that fails, and the fix

    Five examples, each one running: the usual ways this criterion fails, and code that passes. Listen to them, measure them, or copy the code.

    01What changes + Savings accounts –

    Fails

    Every page shares the site name

    Live preview

    HTML
    <head>  <meta charset="utf-8">  <title>Northbank</title></head><body>  <h1>Savings accounts</h1></body>

    The title is the same on every page of the site, so it does not say that this page is about savings accounts. Screen reader users arriving on the page, and anyone with several tabs open, cannot tell where they are.

    Passes

    Page topic first, then the site

    Live preview

    HTML
    <head>  <meta charset="utf-8">  <title>Savings accounts – Northbank</title></head><body>  <h1>Savings accounts</h1></body>

    The title describes the page's topic and puts it before the site name, so it stays useful even when a narrow tab cuts off the end (techniques G88 and H25).

    Fails

    Placeholder title left by the editor

    Live preview

    HTML
    <head>  <meta charset="utf-8">  <title>Untitled Document</title></head><body>  <h1>Contact us</h1></body>

    The page has a title element, but its text is a leftover default that describes nothing about the page (failure F25).

    02What changes 1 line

    Fails

    Single-page app keeps its first title

    Live preview

    JavaScript
    function showView(view) {  document.querySelector("main").replaceChildren(view.render());  history.pushState({}, "", view.url);  // document.title is never changed, so every view is called "Northbank"}

    The content and the address change, but the title stays the same, so every view in the app is announced, bookmarked and listed in history under one name.

    Passes

    Update the title on every view

    Live preview

    JavaScript
    function showView(view) {  document.querySelector("main").replaceChildren(view.render());  history.pushState({}, "", view.url);  document.title = `${view.heading} – Northbank`;}

    Setting document.title each time the view changes gives every screen its own descriptive title, just as a separate page would have.

    Why it matters

    Who it helps

    Screen reader users hear the title first and use it to confirm where they are, and everyone relies on titles to tell apart tabs, bookmarks, history entries and search results. Clear titles also help people with cognitive disabilities stay oriented.

    W3C: Understanding 2.4.2
    • Level A

      Level A is the minimum: failing it can shut some people out completely.

    • In WCAG versions

      Part of WCAG 2.0 since December 2008, and of every version after it.

      WCAG 1.0 checkpoints: 12.1

    • Where it is required

      Required where the law names WCAG 2.0 or later at this level: the United States, Canada, the European Union, the United Kingdom, France, Germany, Italy, Spain, the Netherlands, Ireland, Norway, Switzerland, India, Japan, Australia, New Zealand and Israel.

    How to test

    Checking it

    A few concrete steps. Automated tools find some failures; most need a person.

    1. Check that the page has a title element and that it is not empty.
    2. Read the title out of context and confirm it identifies the page's topic or purpose, not just the site name.
    3. Compare the titles of several pages on the site and confirm each one reflects its own content.

    Common failures

    Where it breaks

    • Every page on the site shares the same title, such as the company name alone.
    • Pages carry placeholder titles such as "Untitled Document" or a bare file name.

    On the Accessibility Checklist