# Document Title

> Every page must have a non-empty <title> element. Screen readers announce it as soon as a page loads, so users know where they are without reading the page.

Source: https://knowledge.evinced.com/web/web-validations/document-title

Documents must have a non-empty `<title>` element to aid in navigation.

A page title tells people where they are without making them read the full page. Assistive technologies announce the text inside the `<title>` element as soon as a page loads, so users can decide whether to stay or move on. A short, unique, and descriptive title also improves search results and keeps browser tabs easy to scan.

## Pass Patterns

### Providing a descriptive title

The `<title>` element names the page and the site, so users know where they are.

```html
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Order Confirmation - MyShop</title>
    </head>
    <body>
        ...
    </body>
</html>
```

### Updating the title in a single-page app

The app sets `document.title` when the view changes, so the title stays accurate.

```javascript
import { useEffect } from "react";


function AccountPage() {
    useEffect(() => {
        document.title = "Account settings - FlowBank";
    }, []);


    return <h1>Account settings</h1>;
}
```

## Fail Patterns

### Missing the title element

The page has no `<title>` element, so assistive technology has nothing to announce.

```html
<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- missing <title> -->
    </head>
    <body>...</body>
</html>
```

### Leaving the title empty

The `<title>` element is present but empty, so it still gives no page name.

```html
<title></title>
```

## WCAG techniques

### Sufficient techniques

-   [G88: Providing descriptive titles for web pages](https://www.w3.org/WAI/WCAG22/Techniques/general/G88)
-   [H25: Providing a title using the title element](https://www.w3.org/WAI/WCAG22/Techniques/html/H25)

### Advisory techniques

-   [G127: Identifying a web page's relationship to a larger collection of web pages](https://www.w3.org/WAI/WCAG22/Techniques/general/G127)

### Failure techniques

-   [F25: Failure of Success Criterion 2.4.2 due to the title of a web page not identifying the contents](https://www.w3.org/WAI/WCAG22/Techniques/failures/F25)

## ACT Rules

-   [HTML page has non-empty title](https://www.w3.org/WAI/standards-guidelines/act/rules/2779a5/)
-   [HTML page title is descriptive](https://www.w3.org/WAI/standards-guidelines/act/rules/c4a8a4/)

## Try It Yourself

### Using a screen reader

**New to screen reader testing, or need a refresher?**  
Review this article first: [Practical guides for using screen readers](https://knowledge.evinced.com/a11y-essentials/practical-guides-for-using-screen-readers)

1.  Load the page with a screen reader running.
2.  Listen to the first announcement.

**Expected results:** The screen reader announces a page title that describes the page.

**Actual results:** When nothing or an unhelpful phrase is announced, the title is missing or empty.

### Inspecting the browser dev-tools

1.  Open your browser's dev tools.
2.  Find the `<title>` element inside the `<head>`.
3.  Check that it contains text that names the page.

**Expected results:** The `<title>` element contains non-empty text that describes the page.

**Actual results:** The `<title>` element is missing or empty.

## FAQ

**How does this issue relate to 2.4.2 Page Titled?**

SC 2.4.2 requires every page to have a title that describes its topic or purpose. A missing or empty `<title>` element fails this criterion. This automated check verifies that a non-empty title is present; whether the title is descriptive is covered by the related [meaningful page title](https://knowledge.evinced.com/web/web-validations/meaningful-page-title) validation.

**Why is this issue marked as Serious?**

Without an informative title, screen reader users cannot quickly confirm where they are, and all users may struggle to tell open tabs or bookmarks apart. This creates disorientation and slows navigation across browsers and assistive technologies.

## Standards and Regulations

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [2.4.2 Page Titled](https://www.w3.org/TR/WCAG22/#page-titled) (A) | Web pages have titles that describe topic or purpose. |
| EN 301 549 | [9.2.4.2 Page Titled](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |
| 508 Trusted Tester | [2.4.2-page-title-defined, 12.A](https://section508coordinators.github.io/TrustedTester/titles.html#check-242-page-title-defined) | A <title> element is defined for the web page. |

## Personas impacted by this issue

-   [Screen Reader](https://knowledge.evinced.com/a11y-essentials/personas#screen-reader)
-   [Braille](https://knowledge.evinced.com/a11y-essentials/personas#braille)
-   [Cognitive](https://knowledge.evinced.com/a11y-essentials/personas#cognitive)

## Related Issues

-   [meaningful-page-title](https://knowledge.evinced.com/web/web-validations/meaningful-page-title)
-   [frame-title](https://knowledge.evinced.com/web/web-validations/frame-title)
-   [frame-title-unique](https://knowledge.evinced.com/web/web-validations/frame-title-unique)
