Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

icons

Rules: 6

icons/apple-touch

The Apple touch icon is missing or unfit

icons/apple-touch/missing · warning · score 3.8 · site

iPhone and iPad visitors who add the site to their home screen get a screenshot or blank tile instead of the logo.

Reported as

the Apple touch icon is missing or unfit: the value found

Fix

Serve an opaque 180×180 PNG at /apple-touch-icon.png, or link one with <link rel=apple-touch-icon>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.apple-touch

Expects

{
  "maxItems": 0
}

icons/declared-size

Icons are not the size or type they declare

icons/declared-size/mismatch · warning · score 4.2 · site

Browsers pick an icon by its declared size and type, so a wrong declaration makes them choose a poor fit or reject the file.

Reported as

icons are not the size or type they declare: the value found

Fix

Make each icon’s sizes and type match the file, or correct the declaration.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.declared-size

Expects

{
  "maxItems": 0
}

icons/favicon

The favicon is missing or broken

icons/favicon/missing · warning · score 4.6 · site

Browser tabs, bookmarks and search results show a blank or default icon instead of the site’s, which makes it harder to recognise.

Reported as

the favicon is missing or broken: the value found

Fix

Link an icon with <link rel=icon>, or serve /favicon.ico as an ICO holding 16 and 32 px images.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.favicon

Expects

{
  "maxItems": 0
}

icons/mask-icon

The Safari pinned tab icon is unusable

icons/mask-icon/invalid · off · score 3.3 · site

Safari draws a pinned tab from this icon, so a broken one leaves a blank or wrongly coloured tab. Safari 12 and later use the SVG favicon instead, so this matters little.

Reported as

the Safari pinned tab icon is unusable; since Safari 12 an SVG rel=icon serves instead: the value found

Fix

Link a single-colour SVG with a color attribute, or drop rel=mask-icon.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.mask-icon

Expects

{
  "maxItems": 0
}

icons/ms-tile

A Windows tile image or browserconfig.xml is broken

icons/ms-tile/unreachable · off · score 3.3 · site

A Windows start-menu tile for the site shows a blank or default image. It only matters for old Windows pinning, so the impact is small.

Reported as

a Windows tile image or browserconfig.xml is broken: the value found

Fix

Serve every image msapplication-TileImage and browserconfig.xml name, or remove them.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.ms-tile

Expects

{
  "maxItems": 0
}

icons/svg

There is no usable SVG favicon

icons/svg/invalid · off · score 3.3 · site

An SVG icon stays sharp at any size and can follow dark mode; without one browsers fall back to a fixed-size bitmap.

Reported as

no usable SVG favicon: the value found

Fix

Link a well-formed SVG with <link rel=icon type=“image/svg+xml”>.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.svg

Expects

{
  "maxItems": 0
}