long-title
What it does
Section titled “What it does”Reports a <title> longer than 70 characters.
Why it matters
Section titled “Why it matters”Search engines cut a title off after about that length, and a browser tab shows a few words only, so the end of a long title is not seen.
To fix, shorten the title, and put the key words first.
Example
Section titled “Example”<!DOCTYPE html><html lang="en"><head><title>This title is really quite long, longer than seventy characters in total length ok</title>...<meta http-equiv="refresh" content="0; url=/new"></head>...Configuration
Section titled “Configuration”angular: lint: rules: long-title: warn # off (default), warn, errorhtml: lint: rules: long-title: warn # off (default), warn, errorsvelte: lint: rules: long-title: warn # off (default), warn, errorvue: lint: rules: long-title: warn # off (default), warn, errorEnabled by the presets: html/html-validate-recommended.
Suppress one line with sudsy-disable-next-line long-title in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| html-validate | long-title |
partial | the length is fixed at 70, no maxlength option |