We should always use the language attribute in the <html>
tag to declare the language of the Web page. This helps search engines deliver relevant content and browsers translate or style snippets of text accordingly.
The language property is inherited by all the children underneath it. Thus, adding the tag to the <body>
element means the text in the head won't be covered.
We can specify English as the language, like this:
If the page contains content in a different language, just add the language attribute to an element surrounding that content like this: