Skip to content

Commit

Permalink
Add a link to 'polyglot document'
Browse files Browse the repository at this point in the history
Fix #540.
  • Loading branch information
xfq committed Oct 12, 2023
1 parent 5213ed3 commit 8ca9d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/language-decl/index.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h2 id="quicksummary">In a nutshell</h2>
<div class="example">
<p><code translate="no">&lt;html lang=&quot;en&quot;&gt;</code></p>
</div>
<p>If this is XHTML 1.x or an HTML5 polyglot document served as XML, you should also use the <code class="kw" translate="no">xml:lang</code> attribute (with the same value). If your page is only served as XML, just use the <code class="kw" translate="no">xml:lang</code> attribute.</p>
<p>If this is XHTML 1.x or an HTML5 <a href="https://www.w3.org/TR/html-polyglot/#dfn-polyglot-markup">polyglot document</a> served as XML, you should also use the <code class="kw" translate="no">xml:lang</code> attribute (with the same value). If your page is only served as XML, just use the <code class="kw" translate="no">xml:lang</code> attribute.</p>
<p>Do not use the <code class="kw" translate="no">meta</code> element with <code class="kw" translate="no">http-equiv</code> set to <code class="kw" translate="no">Content-Language</code>.</p>
<p>Choose tags from the IANA Subtag Registry, and follow the syntax rules in BCP 47 when using more than just a language subtag. Keep your language tags as short as possible.</p>
<p>Use the <code class="kw" translate="no">:lang</code> property in CSS to apply styles dependent on the language of your content. </p>
Expand Down

0 comments on commit 8ca9d90

Please sign in to comment.