You are here: Reference > HTML > attributes > lang

lang attribute

Browser support:
Specifies the language of the element.
The value of the lang attribute is used by user agents to choose language-specific quotations, numbers and glyphs, but it also helps spell checkers and search engines.
JavaScript page for this attribute: lang. You can find other example(s) there.

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 lang attribute:
<span lang="en">Welcome</span>
<span lang="fr">Bienvenue</span>
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content