While reading XML specs I saw that XML has two builtin attributes, one of them being xml:lang
.
I understood that let user define the language of the current block but how can it be used by XML consumer's programs ?
Can internet browser map the system local and the xml:lang
attribute value ?
What will be the difference of using xml:lang="en"
instead of lang="en"
?
I don't know if I could make myself clear, but if someone has an example of use of the xml:lang
atribute, please share.
xml:lang
has the same purpose aslang
- it defines the language a document or fragment is written in. Two different attributes are necessary because not all HTML is XML, and not all XML is (X)HTML.Use cases:
te
in English meant probablythe
, but it's a French word.