You are here: Home > HTML Reference > Elements > <div> element > lang attribute
Usage
Values
HTML 5 says, "The lang
attribute specifies the primary language for the element's contents and for any of the element's attributes that contain text. Its value must be a valid RFC 3066 language code, or the empty string."
Elements
You can use the lang
attribute on any element.
Browser compatibility
Compatibility table legend
| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | div.lang reflects <div lang="en"> | Y | Y | Y | Y | Y | Y | Y | Y |