GUIDE 4 OF 11 · WEBSITE HEALTH CHECK
Viewport, canonical, lang, Open Graph and favicon tags
Six small tags in the head of a page are checked by the website health check: the viewport tag, a second rule that keeps pinch zoom working, the page language, the canonical address, the Open Graph tags that decide how a shared link looks, and the favicon. A missing viewport tag is the only one that fails outright, and zoom is blocked by a fail too. Every fix is one line.
AT A GLANCE
- Viewport: missing fails. Present but without
width=device-widthis a warning. - Pinch zoom:
user-scalable=noor amaximum-scalebelow 2 fails. - Language: a missing
langon<html>, or a value that is not a language code such asen,en-GBorur, is a warning. - Canonical, Open Graph, favicon: a missing or invalid one is a warning. None of them can fail the page.
| Check | Group | Points |
|---|---|---|
Canonical address seo-canonical | Search | 3 |
Page language seo-lang | Search | 2 |
Mobile viewport seo-viewport | Search | 4 |
Social sharing tags seo-social | Search | 2 |
Favicon seo-favicon | Search | 1 |
Pinch zoom allowed a11y-zoom | Accessibility | 2 |
What each check looks at
| Check | Fail | Warning | Pass |
|---|---|---|---|
Mobile viewport (seo-viewport) | No viewport meta tag | A viewport without width=device-width | width=device-width is there |
Pinch zoom allowed (a11y-zoom) | user-scalable=no (or 0), or maximum-scale below 2 | Never a warning | Zoom is not blocked. No viewport tag: skipped. |
Page language (seo-lang) | Never fails | No lang on <html>, or a value that is not a code like en or en-GB | A valid code |
Canonical address (seo-canonical) | Never fails | No canonical link, or an href that is not a full http or https address | A canonical link with a valid address |
Social sharing tags (seo-social) | Never fails | Any of og:title, og:description, og:image missing or empty | All three set |
Favicon (seo-favicon) | Never fails | No icon link and no /favicon.ico | An icon link, or /favicon.ico answers 200 |
Viewport and pinch zoom
Without a viewport tag a phone shows the page as a tiny desktop page, zoomed out. The fix is one tag, and it should not switch zoom off: the zoom check fails a page that sets user-scalable=no or caps maximum-scale below 2, because people who need larger text rely on pinching.
<meta name="viewport" content="width=device-width, initial-scale=1">A cap of exactly 2 passes. The rule matches the WCAG requirement that text can be enlarged to 200 percent without special tools (linked below).
Page language
The lang attribute tells browsers, search engines and screen readers which language the page is in. A screen reader uses it to choose the voice, so a page in the wrong language is read badly. The checker accepts a two or three letter code with optional parts, such as en, ur or en-GB. A word such as english is a warning.
<html lang="en">Canonical address
A canonical link tells search engines which address is the real one when the same page can be reached in several ways: with and without www, over http and https, or with tracking parameters on the end. Search engines treat it as a strong hint, not an order.
<link rel="canonical" href="https://zakaullahwaheed.com/services">
export const metadata = {
alternates: { canonical: "https://zakaullahwaheed.com/services" },
};The checker reads the first canonical link on the page and accepts a relative address by turning it into a full one. It only confirms that the result is a valid http or https address. It does not check that the address is the right page, so a canonical that points somewhere else passes. That check is yours to make.
This site is an example of a canonical that had to move. In December 2026 it moved to its own domain: every page's canonical address changed to the new domain, and the old address was set to redirect there permanently.
Open Graph tags
Open Graph tags decide the title, description and picture that appear when a link is pasted into LinkedIn, WhatsApp, Slack and similar apps. All three are needed for a pass. A picture of 1200 by 630 pixels is the usual size, and it is what this site uses.
<meta property="og:title" content="Services">
<meta property="og:description" content="Five fixed-scope pieces of work, each with a written scope.">
<meta property="og:image" content="https://zakaullahwaheed.com/opengraph-image">Favicon
The favicon is the small icon in browser tabs and bookmarks. The check passes if the page has a <link rel="icon"> (a rel of shortcut icon counts too, because the checker reads each word of rel) or if /favicon.ico answers. An apple-touch-icon link alone does not count. In a Next.js app, a file called icon.png, icon.svg or icon.tsx in the app folder adds the tag for you.
What these checks cannot see
They read the HTML the server sends, so a tag added later by a script is missed. They confirm a tag exists, not that it is right: a canonical that points at the wrong page, an Open Graph image that returns an error, or a favicon file that is empty all pass.
Questions people ask
Is a missing viewport tag a fail or a warning?
A fail. A page with no viewport tag shows zoomed out on a phone, so the checker treats it as broken for mobile. A viewport tag that exists but has no width=device-width is only a warning.
Is it bad to set maximum-scale=1 on a mobile site?
For the zoom check it fails the page. Pinch zoom is how many people enlarge text. If a design breaks when the page is zoomed, the design needs fixing, not the zoom switched off.
Does every page need its own canonical link?
Yes. A canonical set once for the whole site would point every page at the same address. Set it per page, to that page's own full address.
Where the facts come from
See also on this site
FREE · ABOUT TEN SECONDS · NOTHING STORED
Check your own site
Paste a web address into the free website health check. It runs the 36 checks these guides explain, gives a score out of 100, and says what to fix first.
Open the free website health check