empty-title
Angular templatesHTMLVue / SvelteVue / Sveltecorrectnessno fixdefault: warnhtml/html-validate-recommended
What it does
Section titled “What it does”Reports a <title> with no text. White space is not text.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”<!DOCTYPE html><html lang="en"><head><title> </title></head>...Configuration
Section titled “Configuration”angular: lint: rules: empty-title: warn # off, warn (default), errorhtml: lint: rules: empty-title: warn # off, warn (default), errorsvelte: lint: rules: empty-title: warn # off, warn (default), errorvue: lint: rules: empty-title: warn # off, warn (default), errorEnabled 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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-validate | empty-title |
full |