Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML lang Attribute


Definition and Usage

The lang attribute specifies the language of the element's content.

Common examples are "en" for English, "es" for Spanish, "fr" for French and so on.


Applies to

The lang attribute is part of the Global Attributes, and can be used on any HTML element.

Element Attribute
All HTML elements lang

Example

Example

Some French text in a paragraph:

<p lang="fr">Ceci est un paragraphe.</p>
Try it Yourself »

Browser Support

Attribute
lang  Yes Yes Yes Yes Yes