html language tag 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 a language

don't even think about it BRUH

Example 4: html language tags and attributes

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

Example 5: html with lang

<html lang="en">
  <body>
    <h1>Detects you are using english</h1>
  </body>
</html>

Tags:

Html Example