From 8ca9d90e21bd69a9cd78295d31b847515534056f Mon Sep 17 00:00:00 2001 From: Fuqiao Xue Date: Thu, 12 Oct 2023 09:57:56 +0800 Subject: [PATCH] Add a link to 'polyglot document' Fix #540. --- tutorials/language-decl/index.en.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/language-decl/index.en.html b/tutorials/language-decl/index.en.html index f73fff9c..99cbfa5f 100644 --- a/tutorials/language-decl/index.en.html +++ b/tutorials/language-decl/index.en.html @@ -82,7 +82,7 @@

In a nutshell

<html lang="en">

-

If this is XHTML 1.x or an HTML5 polyglot document served as XML, you should also use the xml:lang attribute (with the same value). If your page is only served as XML, just use the xml:lang attribute.

+

If this is XHTML 1.x or an HTML5 polyglot document served as XML, you should also use the xml:lang attribute (with the same value). If your page is only served as XML, just use the xml:lang attribute.

Do not use the meta element with http-equiv set to Content-Language.

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.

Use the :lang property in CSS to apply styles dependent on the language of your content.