Link hreflang is invalid Search Engine Guideline

Description

Link hreflang attribute contains an invalid language.

Help

A BCP 47 hreflang attribute consists of hyphen-separated subtags. The first subtag identifies a natural language by its ISO 639 language code (e.g. en for English) and may be followed by additional subtags. The most common additional subtag is a two-letter ISO 3166 country code (e.g. US for the United States to form en-US). IANA maintains a registry of allowed subtags. An empty hreflang attribute is allowed (and means unknown language) but an hreflang containing only spaces is not allowed and causes a random language to be selected in a screen reader.

Applicable standards

Change history

  • 2026.60 Apr 2026 Added.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: SeoHreflangInvalid