![]() |
||
"lang=" attribute![]() |
![]() |
|
Note: "User agents (browsers) must not use the "lang=" attribute to determine text directionality.
The "lang=" attribute establishes the natural, spoken language for a page. The objective is to make the internet truly international, accepting all languages, characters and writing styles. The "lang=" attribute allows the setting of rules for search engines, speech synthesis, character sets (fonts or glyphs), quotation marks, hyphenation, ligatures, spacing and spell and grammar checking, based on the stipulated language code.
The argument to the "lang=" attribute is made up of two parts; a primary code and an optional subcode (separated by a "-" hyphen). The primary code is a two character language code.
The default state of "lang=" is the value "unknown". White space is not allowed in the argument and language-codes are not case-sensitive. The default language is "unknown".