HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

lang Attribute

lang Attribute

 

 

The lang attribute is used to define the language of the content of the element. Its common example is "en" for simple English, "en-US" for USA English, and "es" for Spanish.

 

Attribute Explanation:-

 

Value Description
languageCode Specifies language code for element's content.

 

Syntax:-

 

Its syntax is:- < element lang="languageCode" >

Code Explanation

All Tutorials related to HTML Global Attributes

All Sections related to HTML