Google Lighthouse finds HTML codes that do not contain the [lang] attribute in a detailed scan result and flags them.
![No Specified [lang] Attribute in HTML](https://screpy.com/wp-content/uploads/2020/11/html-has-lang.png)
How to pass the audit? – Adding HTML Lang Attribute to the Website
To solve the problem, just add the HTML lang attribute to the relevant part of your website. Check the language code used if it has already been added. If it has a non-valid code, this may have caused the problem. Here is an example of the HTML element with the correct code (It is coded to be pronounced in English):
<html lang="en">