EN, Change language
Englishالعربية
BH-095

A character set is declared early in the page head.

The requirement

A character set is declared early in the page head.

Why it matters to users

When the character set is not declared at the top of the page, the browser can show Arabic as garbled symbols, briefly or for good. The citizen sees a broken page and thinks the site is down.

How to fix it

Put <meta charset="utf-8"> as the first element inside head in your page layout, before the title and stylesheets. Then scan again.

How we measure it

A charset in the Content-Type header, or <meta charset> within the first 1024 bytes of the served HTML.

Its official source

Related rules

Charset declared early · Bahrain BH-095 | xfix