Skip to content

missing-title

Added in 0.2.9 · Related issues · View source

What it does

Checks for <head> elements that do not contain a non-empty <title> child.

Why is this bad?

The <title> element names the document. Browsers display it in tabs, history entries, and bookmarks; screen readers announce it first when the page loads; and search engines use it as the default link text in result pages. A page without a title leaves users unable to tell tabs apart and fails WCAG Success Criterion 2.4.2.

Example

<head>
    <meta charset="utf-8">
</head>

Use instead:

<head>
    <meta charset="utf-8">
    <title>My page</title>
</head>

References