HTML lang Attribute
Example
A paragraph containing some French:
This is a paragraph.
Try it »
Browser support





All major browsers support the lang attribute
Definition and Usage
The lang attribute specifies the language of the element's content.
Differences between HTML 4.01 and HTML5
In HTML5, the lang attribute can be used on any HTML element (it will validate any HTML element, but it may not be useful).
In HTML 4.01, the lang attribute cannot be used on:
, , ,
,
HTML Global Attributes