Guideline
Every page should specify the human language for the page using the lang attribute of the html element.
WCAG Reference
For more information, refer to H57: Using language attributes on the html element (http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H57.html).
ePortal Recommendations
ClearPath ePortal automatically generates each page with the lang attribute set to the UICulture for the page. By default, UICulture is set to auto; therefore, the language specified by the user’s web browser dictates the UICulture setting for the page.
Consider the following:
If you are using localization (refer to Localization Support for MVC), you should keep the default setting of auto for UICulture.
If your web application always delivers pages in a particular human language, you should specify the UICulture setting on the globalization element of Web.config file. The Web.config file is located in the root of the presentation project.
For example, the following setting specifies the UICulture as fr-FR for French as spoken in France:
<?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings/> <system.web> <httpRuntime enableVersionHeader="false" requestValidationMode="2.0" targetFramework="4.5.2"/> <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" uiCulture="fr-FR" culture="auto"/>