html lang english code example
Example 1: html lang
<!DOCTYPE html>
<html lang="en"> <!-- sets language to english -->
<!-- <head>, <body>, etc. contents-->
</html>
Example 2: html lang en-us or en-US
<!DOCTYPE html>
<html lang="en-US">
<!-- Specifies the document lauguage
(United States English) -->
</html>
Example 3: html with lang
<html lang="en">
<body>
<h1>Detects you are using english</h1>
</body>
</html>
Example 4: html lang tab
It basically tells the search engine about the language of the content of the web page.