Skip to main content
Version: v6

Language is missing a right-to-left direction directive

Language is missing a right-to-left direction directive — rule summary
FieldValue
Rule codeText_Language_RightToLeft_Missing
WCAG conformance levelA
WCAG success criterion1.3.2 Meaningful Sequence
Must be fixed at sourceNo

Description

Some languages are read from right to left. When such a language is set via the lang attribute on a tag containing text, a supplementary dir (direction) attribute with a value of rtl (right to left) must be provided. Examples of languages that may require these directional directives are: Arabic (ar), Aramaic (arc), Dhivehi (dv), Persian (fa) and others. Using the direction attribute (dir) indicates that the content should be read in a specific direction and allows assistive technologies to read the content correctly.

How to fix

For right-to-left languages (Arabic, Aramaic, Divehi, Persian, Hausa, Hebrew, Khowar, Kashmiri, Kurdish, Pashto, Urdu, Yiddish), add dir="rtl" to the corresponding tag that has the right-to-left language (lang) attribute. For example, use <span lang="ar" dir="rtl"> for Arabic. This ensures correct text direction.