This is a paragraph.

``` --- ## Browser Support All major browsers"> This is a paragraph.

``` --- ## Browser Support All major browsers" />
Easy Tutorial
❮ Tag Del Att Ol Compact ❯

HTML lang Attribute

HTML Global Attributes

Example

Paragraph containing some French:

<p lang="fr">This is a paragraph.</p>

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 may not always be useful).

In HTML 4.01, the lang attribute cannot be used on: <base>, <br>, <frame>, <frameset>, <hr>, <iframe>, <param>, and <script>.


Syntax

Attribute Values

Value Description
language_code Specifies the language code of the element's content. Language Codes Reference
❮ Tag Del Att Ol Compact ❯