====== 3.1.1. Use the lang attribute in the tag to define the main language of the page ======
To ensure the correct reproduction of text content, a declaration of the main language must be included on each page. Use the ''lang'' attribute in the '''' tag for this.
For example, for a page in French, specify:
**Tip**
To enter the ''lang'' attribute, you need to use the two-letter ''ISO 639-1'' code, or if it is not available, the three-letter ''ISO 639-2'' code.
The main codes to be used are as follows:
* ''en'' for English.
* ''fr'' for French.
* ''es'' for Spanish.
* ''de'' for German.
* ''it'' for Italian.
The up-to-date, exhaustive, list of codes is maintained at the following address: http://www.loc.gov/standards/iso639-2/php/English_list.php.
===== Related recommendations =====
* Previous recommendation: [[notices:html-css:veiller-au-bon-encodage-de-tous-les-caracteres]]
* Next recommendation: [[notices:html-css:utiliser-l-attribut-lang-pour-signaler-les-changements-de-langue-dans-le-corps-de-la-page]]