Skip to content

long-title

Reports a <title> longer than 70 characters.

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.

Reported
<!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>
...
angular:
lint:
rules:
long-title: warn # off (default), warn, error
html:
lint:
rules:
long-title: warn # off (default), warn, error
svelte:
lint:
rules:
long-title: warn # off (default), warn, error
vue:
lint:
rules:
long-title: warn # off (default), warn, error

Enabled 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.

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