Rule

Page title

The page must have a title that describes its topic or purpose.

Rule
document-title
WCAG 2.2
2.4.2 Page Titled (opens in a new tab) (Level A)
Severity
Serious

What it checks

Reads the title of the page. A page with no <title>, or an empty one, fails. Screen readers announce the title when a page opens, and browser tabs, bookmarks and history show it.

The document inside an embedded frame is not checked: a frame is named by its own title attribute.

When a person decides

A title that looks like a template, such as Untitled document or Insert title here, or a generic default, such as Index, React App or Example Domain, is sent for review. It is usually a leftover, but the same words can be the real subject of a page. Whether an ordinary title fits its page is not judged.

Example

Fails

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
</head>
<body>
  <h1>Opening hours</h1>
</body>
</html>

Passes

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Opening hours · Riverside Library</title>
</head>
<body>
  <h1>Opening hours</h1>
</body>
</html>

The engine is tested against both examples.

How to fix it

Add a <title> inside <head> that names the page first and the site second.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.