Skip to content

empty-title

Reports a <title> with no text. White space is not text.

The title names the page in the browser tab, history, bookmarks and search results, and is the first thing a screen reader reads.

To fix, write a title that tells this page from the others of the site.

Reported
<!DOCTYPE html>
<html lang="en">
<head>
<title> </title>
</head>
...
angular:
lint:
rules:
empty-title: warn # off, warn (default), error
html:
lint:
rules:
empty-title: warn # off, warn (default), error
svelte:
lint:
rules:
empty-title: warn # off, warn (default), error
vue:
lint:
rules:
empty-title: warn # off, warn (default), error

Enabled by the presets: html/html-validate-recommended.

Suppress one line with sudsy-disable-next-line empty-title in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
html-validate empty-title full