html
Rules: 65
html/alternate-format
The home page links no machine-readable alternate version
html/alternate-format/missing · hint · score 0.5 · page
Without one, tools and AI agents have only the HTML to read, and no feed, JSON or Markdown version to consume. Only the home page is checked, and this is an optional extra.
Reported as
the home page links no machine-readable alternate (feed, JSON, Markdown)
Fix
Add <link rel=alternate type=text/markdown href=/index.md> or a feed to the head.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.head.links
Expects
{
"contains": {
"required": [
"rel",
"type"
],
"properties": {
"rel": {
"pattern": "(?i:(^|\\s)alternate(\\s|$))"
},
"type": {
"not": {
"pattern": "^(?i:text/html)"
}
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"url.pathname": "/"
}
html/author
An article names no author for its link preview
html/author/missing · warning · score 3.7 · page
Link previews, such as Mastodon’s, show the author from these tags, so the article appears with no credited writer. Only pages marked as articles are checked.
Reported as
an article names no author for its link preview
Fix
Add <meta name=author>, article:author, or a JSON-LD author to the article head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.author
Expects
{
"type": "string",
"minLength": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:type": "article"
}
html/canonical
The canonical link is not an absolute URL
html/canonical/invalid · warning · score 5.4 · page
A relative canonical may be resolved wrongly or ignored by search engines, so they index a duplicate instead. Only pages that have a canonical link are checked.
Reported as
canonical link should be an absolute URL
Fix
Make the canonical link an absolute URL.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.canonical
Expects
{
"type": "string",
"pattern": "^https?://"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.canonical": {
"type": "string"
}
}
The canonical link names a different URL
html/canonical/mismatch · warning · score 6.4 · page
Search engines are told another URL is the main version, so this page may drop out of results in its favour. The page’s twin on the canonical origin counts as itself, and pages without a canonical link are skipped.
Fix
Point <link rel=canonical> at this page’s own URL.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.canonical
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The page has no canonical link
html/canonical/missing · warning · score 5.4 · page
Without it, search engines must guess which of several URLs for the same content to index, which splits ranking between them. Only HTML pages that answer 2xx are checked.
Reported as
no canonical link
Fix
Add <link rel=canonical> with the page’s absolute URL to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.canonical
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/charset
The character encoding is not UTF-8 near the top of the page
html/charset/invalid · warning · score 5.2 · page
Browsers read only the first 1024 bytes for the declaration, so a later or non-UTF-8 one may be missed and the text garbled. Only pages that declare a charset are checked.
Reported as
<meta charset> should declare UTF-8 within the first 1024 bytes
Fix
Add <meta charset=utf-8> as the first element of <head>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.charset
Expects
{
"type": "object",
"required": [
"declared",
"offset"
],
"properties": {
"declared": {
"pattern": "^(?i:utf-?8)$"
},
"offset": {
"maximum": 1024
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.charset": {
"type": "object"
}
}
The page declares no character encoding
html/charset/missing · warning · score 5.2 · page
Browsers must guess the encoding, so accented letters, symbols and emoji can appear as garbage for some visitors. Only HTML pages that answer 2xx are checked.
Reported as
no <meta charset>
Fix
Add <meta charset=utf-8> as the first element of <head>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.charset
Expects
{
"type": "object"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/color-scheme
The color-scheme value is not valid
html/color-scheme/invalid · info · score 1.4 · page
Browsers ignore a value they cannot read, so the page gets no dark-mode support from it. Only pages that set color-scheme are checked.
Reported as
meta color-scheme should be normal, or scheme names such as light dark
Fix
Set meta color-scheme to normal, or to scheme names such as “light dark”.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.color-scheme
Expects
{
"type": "string",
"pattern": "^\\s*(?:(?i:normal)|(?:(?i:only)\\s+)?(?!(?i:normal|only)\\b)[A-Za-z_-][\\w-]*(?:\\s+(?!(?i:normal|only)\\b)[A-Za-z_-][\\w-]*)*(?:\\s+(?i:only))?)\\s*$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.color-scheme": {
"type": "string"
}
}
The page does not declare its color scheme
html/color-scheme/missing · info · score 1.4 · page
Browsers cannot tell that the page supports dark mode, so they may paint a white flash or default controls in the wrong theme. Only HTML pages that answer 2xx are checked.
Reported as
no meta color-scheme
Fix
Add <meta name=color-scheme content=“light dark”>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.color-scheme
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/declaration
A script changes what the served HTML declares
html/declaration/mismatch · info · score 1.5 · page
Crawlers and tools that run no script read the served title, canonical or robots tags, while browsers read the changed ones, so each sees a different page. Compared only on pages also rendered in a browser.
Fix
Serve each declaration with its final value, so readers that run no script see what the page means.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
html.rewritten
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/description
Pages of the site share one meta description
html/description/duplicate · warning · score 5.6 · site
Identical descriptions give search engines no way to tell the pages apart, and visitors see the same snippet for different results. The check compares all crawled pages.
Reported as
pages share one meta description
Fix
Give each page a distinct meta description.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.description
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The meta description is shorter than 50 or longer than 160 characters
html/description/length · warning · score 5.5 · page
Search engines cut off a long description and a very short one gives them little to show, so the snippet reads poorly. Only pages that have a meta description are checked.
Reported as
meta description should be 50–160 characters
Fix
Shorten or lengthen the meta description to 50–160 characters.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.description
Expects
{
"type": "string",
"minLength": 50,
"maxLength": 160
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.description": {
"type": "string"
}
}
The page has no meta description
html/description/missing · warning · score 6.0 · page
Search engines build the snippet from whatever text they find, which often reads poorly and lowers clicks from results. Only HTML pages that answer 2xx are checked.
Reported as
no meta description
Fix
Add <meta name=description> with a summary to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.description
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The meta description repeats itself around a separator
html/description/redundant · warning · score 4.7 · page
A repeated phrase wastes the limited space of the snippet in search results and looks careless. Only pages that have a meta description are checked.
Reported as
meta description repeats itself around a separator
Fix
Remove the repeated suffix from the meta description.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.description
Expects
{
"type": "string",
"pattern": "^(?!.*(.{2,120}?)\\s*[-|:–—·»]\\s*\\1$).*$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.description": {
"type": "string"
}
}
html/dir
A right-to-left page does not set its text direction
html/dir/missing · warning · score 3.8 · page
Without dir=rtl, punctuation and mixed text land in the wrong place and the layout may flip incorrectly for readers of Arabic, Hebrew, Persian and similar languages. Only pages whose language is written right to left are checked.
Reported as
a right-to-left language should set <html dir=rtl>
Fix
Add dir=rtl to the <html> element.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.dir
Expects
{
"const": "rtl"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.lang": {
"type": "string",
"pattern": "^(?i:ar|arc|ckb|dv|fa|he|ps|sd|ug|ur|yi)(-|$)"
}
}
html/favicon
The page has no favicon link in its head
html/favicon/missing · info · score 2.2 · page
Browsers request /favicon.ico blindly and may show a blank icon in tabs, bookmarks and search results, which makes the site harder to recognise. Only HTML pages that answer 2xx are checked.
Reported as
no <link rel=icon> in the head
Fix
Add <link rel=icon href=/favicon.ico> to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.head.links
Expects
{
"contains": {
"required": [
"rel"
],
"properties": {
"rel": {
"pattern": "(?i:(^|\\s)icon(\\s|$))"
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/fediverse-creator
fediverse:creator is not in the @user@instance form
html/fediverse-creator/invalid · hint · score 0.3 · page
Mastodon cannot resolve a value in another form, so the article shows no credited author. Only articles that set fediverse:creator are checked.
Reported as
fediverse:creator should name an account as @user@instance
Fix
Set fediverse:creator to an account, as @user@instance.example.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.meta.fediverse:creator
Expects
{
"type": "string",
"pattern": "^@?[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"html.property.og:type": "article",
"html.meta.fediverse:creator": {
"type": "string"
}
}
An article names no fediverse:creator account
html/fediverse-creator/missing · hint · score 0.3 · page
Mastodon shows a link preview’s author from this tag, so without it the article appears with no credited author there. Only pages marked as articles are checked, and this is an optional extra.
Reported as
an article names no fediverse:creator account for Mastodon previews
Fix
Add <meta name=fediverse:creator content=“@user@instance.example”> to the article head.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.meta.fediverse:creator
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"html.property.og:type": "article"
}
html/feed-link
The home page links no RSS, Atom or JSON feed
html/feed-link/missing · hint · score 0.5 · page
Without a feed link, readers and feed apps cannot find the site’s updates, so subscribing means checking it by hand. Only the home page is checked, and this is an optional extra.
Reported as
the home page links no RSS, Atom or JSON feed
Fix
Add <link rel=alternate type=application/atom+xml href=/feed.xml> to the head.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.head.links
Expects
{
"contains": {
"required": [
"rel",
"type"
],
"properties": {
"rel": {
"pattern": "(?i:(^|\\s)alternate(\\s|$))"
},
"type": {
"pattern": "^(?i:application/(rss\\+xml|atom\\+xml|feed\\+json))"
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"url.pathname": "/"
}
html/first-image
The first image is lazy-loaded
html/first-image/slow · info · score 2.9 · page
The first image is usually in view at once, and lazy loading delays it, which slows the largest paint and makes the page feel slower to visitors.
Reported as
the first <img> is usually above the fold, and loading=lazy delays it
Fix
Remove loading=lazy from the first <img>, or set it to eager.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.images.0
Expects
{
"not": {
"type": "object",
"required": [
"loading"
],
"properties": {
"loading": {
"pattern": "^(?i:lazy)$"
}
}
}
}
html/h1
The page has more than one main heading
html/h1/duplicate · error · score 7.4 · page
Several h1 headings blur what the page is about for screen reader users and search engines. Only HTML pages that answer 2xx are checked.
Reported as
more than one <h1>
Fix
Use exactly one <h1> per page.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.h1
Expects
{
"type": "array",
"maxItems": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The page has no main heading
html/h1/missing · error · score 7.4 · page
Screen reader users and search engines lose the clearest signal of what the page is about. Only HTML pages that answer 2xx are checked.
Reported as
no <h1>
Fix
Use exactly one <h1> per page.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.h1
Expects
{
"type": "array",
"minItems": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/hreflang-x-default
The hreflang alternates have no x-default
html/hreflang-x-default/missing · info · score 2.6 · page
Visitors whose language the site does not offer have no designated fallback page, so search engines pick one for them. Only pages that declare hreflang alternates are checked.
Reported as
hreflang alternates should include x-default
Fix
Add <link rel=alternate hreflang=x-default> to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.hreflang
Expects
{
"contains": {
"required": [
"lang"
],
"properties": {
"lang": {
"const": "x-default"
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.hreflang": {
"minItems": 1
}
}
html/img-alt
An image has no alt attribute
html/img-alt/missing · warning · score 5.0 · page
Screen reader users get no description of the image, and search engines cannot use it to understand the page or list it in image search. Only HTML pages that answer 2xx are checked.
Reported as
an <img> has no alt attribute
Fix
Add an alt attribute to every <img>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.images
Expects
{
"type": "array",
"items": {
"required": [
"alt"
]
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/img-dimensions
An image has no width and height
html/img-dimensions/missing · warning · score 6.0 · page
Without dimensions, the browser cannot reserve space before the image loads, so the text jumps when it arrives. That layout shift annoys visitors and hurts Core Web Vitals. Images inside noscript are skipped.
Reported as
an <img> without width and height shifts the layout as it loads
Fix
Add width and height attributes to the <img>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.images
Expects
{
"items": {
"if": {
"not": {
"required": [
"noscript"
]
}
},
"then": {
"required": [
"width",
"height"
]
}
}
}
html/jsonld
A JSON-LD block does not parse
html/jsonld/invalid · warning · score 4.5 · page
Search engines skip structured data they cannot read, so the rich results it was meant to enable, such as ratings or event listings, never appear. Only HTML pages that answer 2xx are checked.
Reported as
a JSON-LD block does not parse
Fix
Fix the JSON-LD block so it is valid JSON.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.jsonld
Expects
{
"items": {
"not": {
"type": "object",
"required": [
"@error"
]
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/lang
The page’s language code is not a valid language tag
html/lang/invalid · error · score 8.2 · page
Screen readers and browsers cannot match an invalid code to a language, so they treat the page as if it had none. Only pages that set a language are checked.
Reported as
<html lang> should be a BCP 47 language tag
Fix
Set <html lang> to a BCP 47 language tag.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.lang
Expects
{
"type": "string",
"pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.lang": {
"type": "string"
}
}
The page does not declare its language
html/lang/missing · error · score 8.2 · page
Screen readers pick the wrong pronunciation, browsers may offer needless translation, and search engines must guess which audience the page is for. Only HTML pages that answer 2xx are checked.
Reported as
no <html lang>
Fix
Set <html lang> to the page’s language, as <html lang=en>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.lang
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/nlweb
The home page links no NLWeb endpoint
html/nlweb/missing · hint · score 0.3 · page
Without the link, AI agents cannot discover that the site answers natural-language questions. Only the home page is checked, and this is an optional extra.
Reported as
the home page links no NLWeb endpoint with rel=nlweb
Fix
Add <link rel=nlweb href=/ask> pointing at the site’s NLWeb endpoint.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.rels.nlweb
Expects
{
"type": "array",
"minItems": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"url.pathname": "/"
}
html/noai
A page says noai while the content signals allow AI training
html/noai/present · warning · score 3.4 · page
The site declares in its content signals that AI training is allowed, yet a page tells crawlers noai or noimageai. The mixed message leaves AI crawlers and the site owner’s intent in conflict. Only sites that declare ai-train as yes are checked.
Reported as
a page says noai or noimageai while the content signals allow AI training
Fix
Remove noai and noimageai from <meta name=robots> and X-Robots-Tag, or declare ai-train as no.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
robots.noai
Expects
{
"const": false
}
When
{
"site.content-signals.ai-train": "yes"
}
html/noindex-staging
A page of a staging or development site can be indexed
html/noindex-staging/missing · warning · score 6.2 · page
Search engines may index the unfinished copy and show it to searchers instead of, or beside, the real site. Only sites declared as development or staging are checked.
Reported as
a page of a staging or development site is indexable
Fix
Send X-Robots-Tag: noindex from every non-production host.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
robots.noindex
Expects
{
"const": true
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"site.role": {
"enum": [
"development",
"staging"
]
},
"url.twin": {
"not": {
"type": "string"
}
}
}
html/noindex-twin
A page served from a non-canonical origin can be indexed
html/noindex-twin/missing · info · score 3.0 · page
If a staging or alternate host serves a copy of the site without noindex, search engines may index the duplicate and compete with the real site. Only pages that mirror a page on the canonical origin are checked.
Reported as
a page served off the canonical origin is indexable; mark the staging twin noindex
Fix
Send X-Robots-Tag: noindex from every origin other than the canonical one.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
robots.noindex
Expects
{
"const": true
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"url.twin": {
"type": "string"
}
}
html/noindex
A page listed in the sitemap says noindex
html/noindex/mismatch · error · score 8.0 · page
The sitemap asks search engines to index the page while the page asks them not to, so the page may vanish from results by mistake. Only production sites are checked, and not copies of a page on another origin.
Reported as
a page the sitemap lists says noindex, in <meta name=robots> or X-Robots-Tag
Fix
Remove noindex from <meta name=robots> or X-Robots-Tag, or unlist the page from the sitemap.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
robots.noindex
Expects
{
"const": false
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"sitemap.listed": true,
"url.twin": {
"not": {
"type": "string"
}
},
"site.role": "production"
}
html/og-description
Pages of the site share one og:description
html/og-description/duplicate · warning · score 4.1 · site
Shared links to different pages show the same summary, so people cannot tell them apart. The check compares all crawled pages.
Reported as
pages share one og:description
Fix
Give each page a distinct og:description.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:description
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The og:description is shorter than 50 or longer than 200 characters
html/og-description/length · warning · score 3.9 · page
A long description is cut off in link previews and a very short one gives no reason to click. Only pages that set og:description are checked.
Reported as
og:description should be 50–200 characters
Fix
Set og:description to 50–200 characters.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:description
Expects
{
"type": "string",
"minLength": 50,
"maxLength": 200
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:description": {
"type": "string"
}
}
The page has no og:description
html/og-description/missing · warning · score 3.9 · page
Shared links show no summary, or a guessed one, so fewer people click them. Only HTML pages that answer 2xx are checked.
Reported as
no og:description
Fix
Add <meta property=og:description> with a summary of the page.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:description
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/og-image
The og:image is not an absolute http(s) URL
html/og-image/invalid · warning · score 4.6 · page
Social networks and chat apps cannot fetch a relative or malformed image address, so the shared link shows no picture. Only pages that set og:image are checked.
Reported as
og:image should be an absolute http(s) URL
Fix
Make og:image an absolute URL.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:image
Expects
{
"type": "string",
"format": "uri",
"pattern": "^(?i:https?)://"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:image": {
"type": "string"
}
}
The page has no og:image
html/og-image/missing · warning · score 4.6 · page
Shared links appear without a preview picture, which draws far less attention in feeds and chats. Only HTML pages that answer 2xx are checked.
Reported as
no og:image
Fix
Add <meta property=og:image> with the absolute URL of a preview image.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:image
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/og-title
Pages of the site share one og:title
html/og-title/duplicate · warning · score 4.2 · site
Shared links to different pages look identical in feeds and chats, so people cannot tell which one they are about to open. The check compares all crawled pages.
Reported as
pages share one og:title
Fix
Give each page a distinct og:title.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:title
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The og:title is shorter than 10 or longer than 90 characters
html/og-title/length · warning · score 4.0 · page
A very long title is cut off in link previews and a very short one says little, so fewer people click a shared link. Only pages that set og:title are checked.
Reported as
og:title should be 10–90 characters
Fix
Set og:title to 10–90 characters.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:title
Expects
{
"type": "string",
"minLength": 10,
"maxLength": 90
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:title": {
"type": "string"
}
}
The page has no og:title
html/og-title/missing · warning · score 4.0 · page
Shared links on social networks and chat apps fall back to a guessed title, which can look wrong. Only HTML pages that answer 2xx are checked.
Reported as
no og:title
Fix
Add <meta property=og:title> with the page title.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:title
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/og-type
The og:type is not a known Open Graph type
html/og-type/invalid · info · score 1.1 · page
Link previews do not recognise the value and fall back to a generic type. Only pages that set og:type are checked.
Reported as
og:type should be an Open Graph type or namespace:type
Fix
Set og:type to website, or article on a post.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:type
Expects
{
"type": "string",
"pattern": "^(?:website|article|book|profile|music\\.(?:song|album|playlist|radio_station)|video\\.(?:movie|episode|tv_show|other)|[a-z][\\w-]*:[\\w.-]+)$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:type": {
"type": "string"
}
}
The page has no og:type
html/og-type/missing · info · score 1.1 · page
Link previews cannot tell whether the page is an article, a profile or a plain website, so they may render it generically. Only HTML pages that answer 2xx are checked.
Reported as
no og:type
Fix
Set og:type to website, or article on a post.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:type
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/og-url
The og:url is not an absolute http(s) URL
html/og-url/invalid · info · score 2.5 · page
Social networks may ignore a relative or malformed address, so they do not credit shares to the page. Only pages that set og:url are checked.
Reported as
og:url should be an absolute http(s) URL
Fix
Make og:url an absolute URL of this page.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:url
Expects
{
"type": "string",
"format": "uri",
"pattern": "^(?i:https?)://"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:url": {
"type": "string"
}
}
The og:url tag names a different URL
html/og-url/mismatch · info · score 2.4 · page
Social networks and chat apps credit shares to the og:url, so a shared link can show another address than the one visitors posted and split its counts. Pages without og:url are skipped.
Fix
Point <meta property=og:url> at this page’s own URL.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:url
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The page has no og:url
html/og-url/missing · info · score 2.5 · page
Social networks cannot tell which URL to credit for a shared page, so likes and shares may be split across variants of the address. Only HTML pages that answer 2xx are checked.
Reported as
no og:url
Fix
Add <meta property=og:url> with this page’s absolute URL.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.property.og:url
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/preconnect-crossorigin
A preconnect to a font origin lacks crossorigin
html/preconnect-crossorigin/missing · info · score 1.6 · page
Fonts are fetched in anonymous CORS mode, so a preconnect without crossorigin warms a connection the font request cannot reuse, and the browser opens a second one, delaying text.
Fix
Add the crossorigin attribute to the preconnect link towards the origin fonts load from.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.head.linkshttp.parsed.linkresources
html/preconnect
A render-blocking origin has no preconnect hint
html/preconnect/missing · info · score 2.2 · page
Scripts or style sheets from another origin hold back rendering, and the browser sets up the connection only once it finds them, which delays the first paint. Counts head scripts without async, defer or type=module, and style sheets for screens.
Fix
Add <link rel=“preconnect” href=“https://origin.example”> for each cross origin a render-blocking script or style sheet comes from.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.head.linkshttp.parsed.linkhtml.scripts
A preconnect hint points at an origin the page never uses
html/preconnect/unused · info · score 1.4 · page
The browser opens a connection that nothing uses, spending bandwidth and battery and competing with connections that matter. Judged only on pages rendered in a browser, since a static read misses what scripts and CSS load.
Fix
Remove the preconnect or dns-prefetch link to an origin the page no longer loads from.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.head.linkshttp.parsed.linkresources
html/privacy-policy
The page links no privacy policy with rel=privacy-policy
html/privacy-policy/missing · info · score 1.6 · page
Browsers, crawlers and assistants cannot find the privacy policy automatically, so visitors have a harder time learning what happens to their data. Only HTML pages that answer 2xx are checked.
Reported as
no link with rel=privacy-policy
Fix
Add <link rel=privacy-policy href=/privacy> to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.rels.privacy-policy
Expects
{
"type": "array",
"minItems": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/published-date
An article gives no publication date for its link preview
html/published-date/missing · warning · score 3.6 · page
Link previews cannot show when the article appeared, and readers cannot judge how fresh it is. Only pages marked as articles are checked.
Reported as
an article gives no publication date for its link preview
Fix
Add <meta property=article:published_time> or a JSON-LD datePublished in ISO 8601.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.published
Expects
{
"type": "string",
"minLength": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.property.og:type": "article"
}
html/script
A script in the head blocks rendering
html/script/blocking · info · score 3.0 · page
A classic script in the head without async or defer makes the browser stop and download it before showing anything, so visitors stare at a blank page longer. External scripts are checked, module scripts are fine.
Reported as
a script in <head> without async, defer or type=module blocks rendering
Fix
Add async, defer, or type=module to the script, or move it to the end of <body>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.scripts
Expects
{
"items": {
"if": {
"required": [
"src"
],
"properties": {
"head": {
"const": true
},
"async": {
"const": false
},
"defer": {
"const": false
}
}
},
"then": {
"required": [
"type"
],
"properties": {
"type": {
"const": "module"
}
}
}
}
}
html/speculation-rules
The page has no Speculation Rules to prefetch likely next pages
html/speculation-rules/missing · hint · score 0.7 · page
Without them, a click on a likely next page waits for a fresh load that the browser could have started earlier. This is an optional speed-up for HTML pages that answer 2xx.
Reported as
no Speculation Rules script or header prefetches likely next pages
Fix
Add <script type=speculationrules> with a prefetch rule for same-origin links.
Off by default; a group that runs suggestions turns it on.
References
For rule authors
Reads
html.scripts
Expects
{
"contains": {
"required": [
"type"
],
"properties": {
"type": {
"pattern": "^(?i:speculationrules)$"
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"http.content-type": {
"pattern": "^text/html"
},
"http.headers.speculation-rules": {
"not": {
"type": "string"
}
}
}
html/stylesheet
More than one stylesheet in the head blocks rendering
html/stylesheet/blocking · info · score 2.3 · page
Each stylesheet in the head must download before the page shows, so several of them delay the first paint, most of all on slow connections. Only plain stylesheets for all media or screen are counted.
Reported as
more than one stylesheet in <head> blocks rendering
Fix
Inline the critical CSS and load the rest with media=print onload, or merge the stylesheets into one.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.head.links
Expects
{
"minContains": 0,
"maxContains": 1,
"contains": {
"required": [
"rel"
],
"properties": {
"rel": {
"pattern": "^\\s*(?i:stylesheet)\\s*$"
},
"media": {
"pattern": "^\\s*(?i:all|screen)?\\s*$"
}
}
}
}
html/tdm-reservation
The tdm-reservation meta tag is not 0 or 1
html/tdm-reservation/invalid · warning · score 3.5 · page
Text-and-data-mining crawlers cannot read the page’s reservation, so they may mine content the owner meant to reserve. Only pages that set the tag are checked.
Reported as
<meta name=tdm-reservation> should be 0 or 1
Fix
Set <meta name=tdm-reservation content=1> to reserve text and data mining rights, 0 to waive them.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.tdm-reservation
Expects
{
"type": "string",
"pattern": "^\\s*[01]\\s*$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.tdm-reservation": {
"type": "string"
}
}
html/theme-color-dark
Light and dark are declared, but no dark theme-color is set
html/theme-color-dark/missing · warning · score 3.4 · page
The address bar stays in the light color when the visitor uses dark mode, which clashes with the page. Only pages whose color-scheme names both light and dark are checked.
Reported as
color-scheme names light and dark, but no theme-color pair carries a prefers-color-scheme media
Fix
Add <meta name=theme-color media=“(prefers-color-scheme: dark)”> beside the light one.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.metas
Expects
{
"allOf": [
{
"contains": {
"properties": {
"name": {
"const": "theme-color"
}
},
"required": [
"name"
]
},
"minContains": 2
},
{
"contains": {
"properties": {
"name": {
"const": "theme-color"
},
"media": {
"pattern": "(?i:prefers-color-scheme)"
}
},
"required": [
"name",
"media"
]
}
}
]
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.color-scheme": {
"type": "string",
"allOf": [
{
"pattern": "(?i:\\blight\\b)"
},
{
"pattern": "(?i:\\bdark\\b)"
}
]
}
}
html/theme-color
The theme-color meta tag is not a valid color
html/theme-color/invalid · warning · score 3.3 · page
Browsers ignore a theme-color that is empty or not a CSS color, so the toolbar on phones keeps its default and the page loses its branding.
Fix
Set <meta name=theme-color> content to a CSS color, as in #1a73e8.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.metas
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The page has no theme-color meta tag
html/theme-color/missing · warning · score 3.3 · page
Mobile browsers cannot tint their address bar to match the site, so the page looks less polished and less like an app. Only HTML pages that answer 2xx are checked.
Reported as
no meta theme-color
Fix
Add <meta name=theme-color> with a color value.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.theme-color
Expects
{
"type": "string",
"minLength": 1
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
html/title
Pages of the site share one title
html/title/duplicate · warning · score 5.9 · site
Identical titles make pages indistinguishable in tabs and search results, and search engines may treat them as duplicates and show only one. The check compares all crawled pages.
Reported as
pages share one <title>
Fix
Give each page a distinct <title>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.title
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The title is shorter than 30 or longer than 60 characters
html/title/length · warning · score 5.7 · page
Search results cut off a long title and a short one wastes the space that sets the page apart, so fewer visitors click it. Only pages that have a title are checked.
Reported as
<title> should be 30–60 characters
Fix
Shorten or lengthen <title> to 30–60 characters.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.title
Expects
{
"type": "string",
"minLength": 30,
"maxLength": 60
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.title": {
"type": "string"
}
}
The page has no title
html/title/missing · error · score 7.8 · page
Browser tabs, bookmarks and search results show a bare address, so visitors cannot tell the page apart and search engines have little to rank it by. Only HTML pages that answer 2xx are checked.
Reported as
no <title>
Fix
Add a <title> to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.title
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The title repeats itself around a separator
html/title/redundant · warning · score 4.8 · page
A repeated phrase such as “Shop - Shop” wastes the limited space of a title in search results and looks careless. Only pages that have a title are checked.
Reported as
<title> repeats itself around a separator
Fix
Remove the repeated suffix from <title>.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.title
Expects
{
"type": "string",
"pattern": "^(?!.*(.{2,120}?)\\s*[-|:–—·»]\\s*\\1$).*$"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.title": {
"type": "string"
}
}
html/viewport
The viewport tag blocks zooming or ignores the device width
html/viewport/inaccessible · warning · score 5.3 · page
Visitors with low vision cannot zoom in, and a page that does not follow the device width looks tiny on phones. Only pages that set a viewport are checked.
Reported as
meta viewport should set width=device-width and allow zoom
Fix
Set <meta name=viewport content=“width=device-width”> and allow zoom.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.viewport
Expects
{
"type": "string",
"pattern": "^(?!.*(?i:user-scalable)\\s*=\\s*(?i:no|0)\\b)(?!.*(?i:maximum-scale)\\s*=\\s*1(\\.0+)?(?![\\d.]))(?=.*(?i:width\\s*=\\s*device-width))"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
},
"html.meta.viewport": {
"type": "string"
}
}
The viewport meta tag has entries browsers ignore
html/viewport/invalid · info · score 1.3 · page
Browsers silently drop unknown keys and unreadable values, so the page may not scale or fit a phone screen as intended.
Fix
Keep meta viewport to known keys, as in width=device-width, initial-scale=1.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.viewport
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
The page has no viewport meta tag
html/viewport/missing · warning · score 5.3 · page
Phones render the page as a zoomed-out desktop layout, so visitors must pinch and scroll sideways, and search engines may rate the page as not mobile-friendly. Only HTML pages that answer 2xx are checked.
Reported as
no meta viewport
Fix
Add <meta name=viewport content=“width=device-width”> to the head.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
html.meta.viewport
Expects
{
"type": "string"
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}