The HTML <lang> Attribute
<lang> attribute specifies the language of the element's contents. If you are using HTML5, then you can add this attribute to any element. However, this attribute is not usually necessary. You can use it when you have snippets of content in a different language. This can help when a browser tries to translate a webpage in a different language.