1<!DOCTYPE html>
2
3<html lang="en"> <!-- sets language to english -->
4
5<!-- <head>, <body>, etc. contents-->
6
7</html>
1The 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
2
3Syntax
4<element lang="language_code">
5
6Example
7Some French text in a paragraph:
8
9<p lang="fr">Ceci est un paragraphe.</p>
1<html lang="en">
2 <body>
3 <h1>Detects you are using english</h1>
4 </body>
5</html>