Success Criteria 3.1.1 Language of Page: [Level A]
When the language of the page can be determined, linguistic content can be presented correctly and screen readers can use the correct pronunciation rules.
Techniques
Using the lang attribute
The lang attribute can be used in the html tag to specify the language for the whole web page.
<!-- Specifies the language is Haitian Creole --> <html lang="ht">> ... </html>
For an XHTML page, the xml:lang attribute is also recommended.
<!-- Specifies the language is Haitian Creole --> <html xmlns="http://www.w3.org/1999/xhtml" lang="ht" xml:lang="ht"> ... </html>