Declaring metadata about the language(s) of the intended audience
See also
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 Declaring the overall language of a page.
For detailed advice about how to select the right language tags, see Choosing language values.
How to's
- 
            HTTP headers, meta elements and language information 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: - 
                Specifying metadata about the audience language Talks about using HTTP headers to provide metadata. 
 
- 
                
Background reading
- 
            
            Describes two different types of language information, 'metadata' and 'text-processing', and how they differ. 
Spec links
- 
            HTML5, 4.2.5.3 Pragma directives How HTML5 deals with a metaelement withhttp-equivset toContent-Language.
- 
            HTTP 1.1, 14.12 Content-Language The Content-LanguageHTTP header described in the HTTP1.1 specification.
Show more links
- 
            HTML 4.01, 8.1 Specifying the language of content: the lang attribute Content-Languagein the HTML specification: only says that thehtmllanguage attribute has a higher precedence.