Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML lang Attribute

HTML lang Attribute

HTML Global Attributes HTML Global Attributes

Example

A paragraph containing some French:

This is a paragraph.

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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: ,
, , ,


,