The lang attribute specifies which language is used to write the content of a web page. It is used to set the language for the whole text of the web page.
The difference between <html lang=”en’> and <html lang=”en-US’> is described below:
The <html lang=”en’> only specifies the language code of the page meaning en or English is used for all the text on the page.
The <html lang=”en-US’> specifies the language code of the page followed by the country code that means US style of English language is used for all the text on the page.
<html lang=”en-GB’> which means the United Kingdom style of English
<html lang=”en-IN’> which means the Indian style of English
- What is the difference between MEAN.js and MEAN.io?
- Difference between JSP and ASP
- Difference between ASP and ASP.NET
- What is the difference between (NaN != NaN) & (NaN !== NaN)?
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- Difference between T-SQL and PL-SQL
- What is the difference between GUI and CUI?
- Difference Between Blu-Ray and DVD
- Difference between “!==” and “==!” in PHP
- Difference between From and Where Clause in SQL
- Difference between VGA and SVGA
- What is the difference between CSS and SCSS ?
- Difference between "." and "#" selector in CSS
- Difference between Where and Group By
- Difference between 2D and 3D Shapes
- Difference Between Node.js and Asp.net
- What is the difference between the | and || or operator in php?
- Difference between Where and Having Clause in SQL
- Difference Between Hadoop and SQL
- Difference between array() and  in PHP
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.