Global web icon
w3.org
https://www.w3.org/International/questions/qa-html…
Declaring language in HTML - World Wide Web Consortium (W3C)
The link text shows the language of the target page using the language of the target page, but an associated title attribute contains a hint in the language of the current page: If your code looks as follows, the language attributes would actually indicate that not only the content but also the title attribute text is in Spanish.
Global web icon
w3.org
https://www.w3.org/International/articles/language…
Language tags in HTML and XML
Language tags are used to indicate the language of text or other items in HTML and XML documents. Use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML. In both cases, language information is inherited by elements inside the one where the declaration was made, unless one of those elements declares a different language (in the same way).
Global web icon
w3.org
https://www.w3.org/International/tutorials/languag…
Working with language in HTML (tutorial)
This tutorial gathers together and organizes pointers to articles that, taken together, help you understand the essential aspects of how to work with language information when authoring HTML and CSS. In a nutshell Always add a lang attribute to the html tag to set the default language of your page.
Global web icon
w3.org
https://www.w3.org/TR/REC-html40/struct/dirlang.ht…
Language information and text direction
8.1.1 Language codes The lang attribute's value is a language code that identifies a natural language spoken, written, or otherwise used for the communication of information among people. Computer languages are explicitly excluded from language codes. [RFC1766] defines and explains the language codes that must be used in HTML documents.
Global web icon
w3.org
https://www.w3.org/International/questions/qa-html…
Déclarer la langue en HTML - World Wide Web Consortium (W3C)
Question Comment bien déclarer la langue du contenu de ma page HTML ? Réponse rapide Utilisez toujours un attribut de langue sur la balise html pour déclarer la langue du texte par défaut dans la page. Quand la page contient du contenu dans une autre langue, ajoutez un attribut de langue à un élément qui encadre ce contenu. Utilisez toujours l’attribut lang pour les pages servies en ...
Global web icon
w3.org
https://www.w3.org/2005/05/font-size-test/starhtml…
Language tags in HTML and XML
Language tags can be (and should be) used to indicate the language of text in HTML and XML documents. For HTML 4, language tags are specified with the lang attribute. For XML, language tags are given in the xml:lang attribute. In both cases, language information is inherited along the document hierarchy, i.e. it has to be given only once if the whole document is in one language, and language ...
Global web icon
w3.org
https://www.w3.org/International/questions/qa-http…
HTTP headers, meta elements and language information
In addition to the lang (and/or xml:lang) attribute on the html tag, you may come across language information in HTML meta elements, or in the HTTP header which is served with an HTML page. Here we look at whether these are useful when declaring language for HTML content, and if so, how they should be used. This article is (specifically) about language declarations in HTTP headers and meta ...
Global web icon
w3.org
https://www.w3.org/International/questions/qa-html…
Angabe der Sprache in HTML - World Wide Web Consortium (W3C)
In der Vergangenheit haben viele ein meta -Element verwendet, in dem das http-equiv -Attribut auf Content-Language gesetzt wird. Wegen andauernden Irritationen und unterschiedlichen Implementierungen dieses Elements erklärt die HTML5-Spezifikation dies für nicht normgerecht in HTML. Sie sollten das folglich nicht mehr verwenden.
Global web icon
w3.org
https://www.w3.org/International/questions/qa-html…
Declarar idioma en HTML - World Wide Web Consortium (W3C)
href="qa-html-language-declarations.es"> Español </a> Por el contrario, mueva el texto que contiene el atributo en un idioma diferente a otro elemento, como se muestra en este ejemplo, en el que el elemento span hereda el ajuste en predeterminado del elemento html.
Global web icon
w3.org
https://www.w3.org/International/articles/language…
Les étiquettes de langues en HTML et XML
Dans un document HTML ou XML, une étiquette d’identification de langue (comme fr-CA) permet de préciser la langue du texte ou d’autres éléments. Elle s’utilise avec l’attribut lang en HTML et l’attribut xml:lang en XML. La plupart des étiquettes de langues se composent d’une sous-étiquette de langue de deux ou trois lettres. Celle-ci est souvent suivie d’une sous-étiquette ...