The `lang` attribute in HTML is used to identify the language of the content in the element it’s applied to. This can be useful for screen readers, translation systems and search engines.
You use it by including it inside the starting (or opening) tag of an element like so:
```
C’est la vie.
In the example above, the `lang` attribute is used to specify that the content within the `
` tag is in French.
You can also use `lang` attribute in the `` tag to specify the language for the whole HTML document:
```
This website is primarily written in English.
In this example, the `lang` attribute indicates that the primary language used in the HTML document is English.
For the value of the `lang` attribute, you should use a code that represents the language you’re using. These codes are standardized and you can find a complete list online, for example, “en” stands for English, “es” for Spanish, “de” for German, etc.