# VGAR Page Requirements

## Lang Attribute (PAG-WEB-004)

### Include correct language <lang> attribute for the page

A proper language attribute notifies the browser of the correct language to render for text content and allows assistive technologies like screen readers to present the text in the correct pronunciation and style. If a site offers user defined language selection, the page's language attribute should update when a new language is selected.

### Requirements

#### Lang Attribute (PAG-WEB-004-01)

The applicable language MUST be defined on every page, inside the html tag. Mobile users should be able to select language from device settings and app should support this choice.

### Test Procedures

#### FAE > Navigation > Language Changes (PAG-WEB-004-01-T)

1. Inspect the HTML DOM and confirm that a <lang> attribute is present
2. Confirm that the <lang> attribute is correct for the language of the page content

### Related Content

#### WCAG Success Criteria

- [3.1.1 Language of Page](http://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-doc-lang-id.html)

#### W3C Techniques

- [H57: Using language attributes on the html element](http://www.w3.org/TR/2015/NOTE-WCAG20-TECHS-20150226/H57)
- [FLASH13: Using HTML language attributes to specify language in Flash content](http://www.w3.org/TR/2015/NOTE-WCAG20-TECHS-20150226/FLASH13)
- [SVR5: Specifying the default language of the HTTP header](http://www.w3.org/TR/2015/NOTE-WCAG20-TECHS-20150226/SVR5)
