top of page
  • Writer's pictureBrent Payne

Has hreflang annotations without HTML lang

The page in question includes hreflang tags yet lacks the specification of the language and region via the HTML lang attribute.

Why is this important?

While hreflang tags assist Google and Yandex in correctly aligning URLs with regional searches, search engines like Bing rely on the HTML lang attribute to perform the same function.

Omitting the HTML lang attribute when using hreflang could lead to misinterpreted language or regional directives by certain search engines, potentially causing the wrong page to appear in localized search results.

What does the Optimization check?

This Optimization will be activated for any page that incorporates hreflang annotations but neglects to include the HTML lang attribute.

Examples that trigger this Optimization:

Take for instance the URL:

This URL would trigger the Optimization if it included hreflang tags:

<link rel="alternate" href="" hreflang="en-us" /><link rel="alternate" href="" hreflang="fr-fr" /><link rel="alternate" href="" hreflang="de-de" />

but did not include a HTML lang attribute:

<html lang="en">

Why is this Optimization marked 'Opportunity'?

In our audit tool, we categorize this Optimization as an Opportunity since addressing it may help the website attract additional search traffic.

For the language of the pages to be correctly determined by all search engines, ensure that HTML lang is used in conjunction with hreflang, especially if your target market uses search engines that prioritize HTML lang.

Further Reading

0 views0 comments

Recent Posts

See All

CSS file size too large discovered in SEO audit

In our SEO audits at Loud Interactive, we often come across a common yet significant issue that can heavily impact your website's loading speed and overall performance: CSS file size too large. Let's

CSS file size too large discovered in SEO audit

When conducting an SEO audit on your site, one issue that might come up is that your CSS file size is too large. But why does this matter, and what can you do about it? Let's dive in. What's the Issue

H1 tag missing or empty" Discovered in an SEO Audit

At Loud Interactive, we've encountered a common issue during our SEO audits that can significantly impact a website's performance on search engines: the "H1 tag missing or empty" warning. This problem

bottom of page