Declaring metadata about the language(s) of the intended audience
This section is specifically about setting metadata for the document as an object. For information about declaring the language of the document for text-processing purposes, see.
For detailed advice about how to select the right language tags, see.
For HTML, should we put language declarations in HTTP headers and meta elements, and how are they different from those in language attributes?
How should I set the language of the content in my HTML page? Includes:
Talks about using HTTP headers to provide metadata.
How HTML5 deals with a
Content-LanguageHTTP header described in the HTTP1.1 specification.
Content-Languagein the HTML specification: only says that the
htmllanguage attribute has a higher precedence.