language attribute html 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 language tags and attributes
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">