Check out example codes for "html lang". It will help you in understanding the concepts better.

Code Example 1

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

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

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

Code Example 2

<!DOCTYPE html>

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


Code Example 3

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

Code Example 4

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

Learn ReactJs, React Native from