Compare Revisions
Content-Language
Revision 1090651:
Revision 1090651 by fscholz on
Revision 1090655:
Revision 1090655 by fscholz on
- Title:
- Content-Language
- Content-Language
- Slug:
- Web/HTTP/Headers/Content-Language
- Web/HTTP/Headers/Content-Language
- Tags:
- "HTTP" "Headers" "Reference" "Headers"
- "HTTP" "Headers" "Reference" "Headers"
- Content:
-
Revision 1090651 Revision 1090655 n n 58 <h2> 59 Examples 60 </h2> 61 <h3> 62 Indicating the language a document is written in 63 </h3> 64 <p> 65 The global <code><a href="/en-US/docs/Web/HTML/Global_attri > butes/lang">lang</a></code> attribute is used on HTML elements to > indicate the language of an entire <a href="/en-US/docs/Web/HTML > ">HTML</a> document or parts of it. 66 </p> 67 <pre class="brush: html"> 68 <html lang="de"> 69 </pre> 70 <p> 71 Do <strong>not</strong> use this meta element like this for > stating a document language: 72 </p> 73 <pre class="brush: html example-bad"> 74 <meta http-equiv="content-language" content="de"> 75 </pre> 76 <h3> 77 Indicating a target audience for a resource 78 </h3> 79 <p> 80 The <code>Content-Language</code> header is used to specify > the <strong>intended audience of the page</strong>, and can indi > cate that this is more than one language. 81 </p> 82 <pre> 83 Content-Language: de, en 84 </pre> t t 123 <li> 124 <p> 125 <a href="https://www.w3.org/International/questions/qa- > http-and-lang.en">HTTP headers, meta elements and language inform > ation</a> 126 </p> 127 </li>