You are here: Reference > HTML > attributes > xml:lang

xml:lang attribute

Browser support:
Sets the language code of the XML document.
The declared xml:lang attribute is considered to apply to all attributes and content of the element, and all of its children unless overridden with an instance of the xml:lang attribute.

Possible values:

String that sets the language code. For more information about language codes click here.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the xml:lang attribute:
<a xml:lang="us">Apple</a>
Did you find this example helpful? yes no

Supported by tags:

User Contributed Comments

Post Content

Post Content