This means that the URL in question has defined the language/region attribute using HTML lang, but either the language code or the geography code is invalid (or both are invalid).
Some search engines, such as Bing, use the HTML lang attribute to help them determine which URLs to display in regional search results.
The "content" attribute is comprised of a 2-letter language code, followed by a dash and the appropriate geography code. For example:
In order to be considered valid, and recognised by search engines, the attribute value must conform to certain guidelines:
If HTML lang does not conform to any of the above, it will not be recognised by search engines.
This Hint will trigger for any URL that uses an invalid HTML lang attribute.
Consider the URL: https://example.com/en/page-a/
The Hint would trigger for this URL if it had an invalid HTML lang attribute:
<meta http-equiv="content-language" content="en-uk">
(where "en-uk" is invalid - it should be "en-gb")
Invalid HTML lang will cause you issues in search engines that still support HTML lang (e.g. Bing), and they won't serve the correct localised content in different regions.
However, if you have set up hreflang correctly, this will supersede HTML lang (valid or not) for search engines that use hreflang (e.g. Google).
Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.
Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.