Indicating language – Accessibility notes

Indicating language

Rules


Rationale

Assistive technologies such as screen readers have support for different languages, allowing for appropriate pronounciation.


Techniques

Good code example

Failure code example


Tests

Procedure Expected result Type
Search source for <html> element <html> element must have a lang attribute with a value equal to the language code for the main page content language. Manual
Validate the page against the W3C internationalisation checker. There must not be a 'The html tag has no language attribute' warning. And the Language HTML tag value should match the language code for the main page content language. Tool
Search source for each instance of a language change Each instance should have a containing element with a lang attribute with a value equal to the language code for the language. Manual