Skip to content

Commit

Permalink
Merge pull request #342 from w3c/r12a-patch-1
Browse files Browse the repository at this point in the history
qa-http-and-lang.en: Add a pointer to the article distinguishing audi…
  • Loading branch information
r12a committed Jan 24, 2022
2 parents 08e22b7 + ee5f84f commit 02a77c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions questions/qa-http-and-lang.en.html
Expand Up @@ -37,11 +37,10 @@
<script src="../javascript/boilerplate-text/boilerplate-en.js"></script><!--TRANSLATORS must change -en to the subtag for their language!-->
<script src="../javascript/doc-structure/article.js"> </script>
<script src="../javascript/articletoc-html5.js"></script>
<link rel="stylesheet" href="../style/article-2016.css" type="text/css" />
<link rel="stylesheet" href="../style/article-2016.css" />
<!-- remove the following local css declaration if there is nothing to add -->
<link rel="stylesheet" href="filename-data/local.css" type="text/css" />
<link rel="stylesheet" href="filename-data/local.css" />
<link rel="copyright" href="#copyright"/>
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>

<body>
Expand All @@ -63,10 +62,12 @@ <h1>HTTP headers, <code class="kw" translate="no">meta</code> elements and langu

<p><span style="margin-top: 6em;">In addition to the <a class="print termref" href="https://www.w3.org/TR/html5/dom.html#the-lang-and-xml:lang-attributes"><code class="kw" translate="no">lang</code></a> (and/or <a class="print termref" href="http://www.w3.org/TR/2004/REC-xml-20040204/#sec-lang-tag"><code class="kw" translate="no">xml:lang)</code></a> attribute on the <code class="kw" translate="no">html</code> tag, you may come across language information in HTML <code class="kw" translate="no">meta</code> elements, or in the HTTP header which is served with an HTML page.</span> Here we look at whether these are useful when declaring language for HTML content, and if so, how they should be used.</p>
<p class="info">This article is (specifically) about language declarations in HTTP headers and <code class="kw" translate="no">meta</code> elements. It's not a general guide to setting language on an HTML page: for that, see <a href="qa-html-language-declarations">Declaring language in HTML</a><!--, or try the <a href="#relatedhead">Related links</a-->.</p>
<p><span class="info">This article builds on the distinction between (1) using
file metadata to identify the audience for the document, and (2) specifying the language used for the purpose of processing content. If you want to better understand the distinction see the article <a href="qa-text-processing-vs-metadata">Types of language declaration</a>.</span></p>


<section>
<h2 id="meta_summary"><a href="#meta_summary">The meta element</a></h2>
<h2 id="meta_summary"><a href="#meta_summary">The meta element</a></h2>
<p>You may come across a language-related <code class="kw" translate="no">meta</code> element near the top of an HTML file. It looks like this.</p>
<figure class="example">
<div class="badcode"><span><img src="../icons/dontcopy.png" alt=" "> Bad code. Don't copy!</span></div>
Expand Down

0 comments on commit 02a77c1

Please sign in to comment.