EN, Change language
Englishالعربية
OM-028

Each language version declares its page language on <html>, matching its content (WCAG 2.2 AA, 3.1.1 Language of Page).

The requirement (from the design system site)

Each language version declares its page language on <html>, matching its content (WCAG 2.2 AA, 3.1.1 Language of Page).

Why it matters to users

A screen reader picks its voice from the declared page language. If an Arabic page says it is English, a blind user hears Arabic words read with English pronunciation and cannot understand the service.

How to fix it

Set lang=ar on Arabic pages and lang=en on English pages in the html element, and mark any passage in the other language with its own lang attribute. Then scan again.

How we measure it

html[lang] is present and its language matches the script of the main text, on every page and on the other-language homepage.

Derived, not stated on a Gov.om page: the frontend criteria require WCAG 2.2 AA (3.1.1 Language of Page), applied to the two language versions the language principles require. The lang attribute is also among the axe rules of OM-031.

The rule on the design system site

Related rules

Page language declared · Oman OM-028 | xfix