HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The lang attribute specifies the language of the element's content."
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.
The lang
attribute is a Global Attribute, and can be used on any HTML element.
Element | Attribute |
---|---|
All HTML elements | lang |
Some French text in a paragraph:
<p lang="fr">Ceci est un paragraphe.</p>
Attribute | |||||
---|---|---|---|---|---|
lang | Yes | Yes | Yes | Yes | Yes |