html lang
snippet in html

html lang

user8821

<!DOCTYPE html>

<html lang="en"> <!-- sets language to english -->
  
<!-- <head>, <body>, etc. contents-->

</html>

html5 language code

user8581

<html lang="en">
	<!-- ... -->
</html>

html lang attribute

user8069

The HTML lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results, and it is also used by screen readers that switch language profiles to provide the correct accent and pronunciation

Syntax
<element lang="language_code">
  
Example
Some French text in a paragraph:

<p lang="fr">Ceci est un paragraphe.</p>

html with lang

user2259

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