← All checks

metadata · metadata.charset.lateDeclaration

Charset declared too late in <head>

The HTML spec requires the charset within the first 1024 bytes. Declared later, browsers may ignore it and guess instead.

Why it matters

The HTML spec requires the charset declaration to appear within the first 1024 bytes; later declarations may be ignored.

Example fix

<head>\n  <meta charset="utf-8" />  <!-- must be first -->\n  <title>…</title>\n</head>

Authoritative reference

https://html.spec.whatwg.org/multipage/semantics.html#charset

Run a full audit of your site

Free, no signup, no crawl cap. Check this and 90+ other factors across every public page.

Audit my site →

Related checks in metadata