The term at a glance
TermMeansExampleWhy AI cares
hreflangA label that links the language versions of a page.The French pricing page and the English one point to each other, plus an x-default for everyone else.A wrong language version can be the one a buyer is sent to, so each version needs to point to its siblings.

In more detail

Google describes three equivalent ways to indicate alternate versions: HTML link elements, HTTP headers and the sitemap. Alternate URLs must be fully qualified, an x-default value can name a fallback page for unmatched languages, and if two pages do not point to each other the annotations are ignored. Google does not use hreflang or the lang attribute to detect a page's language; it reads the visible content.

An example

A site with English, French and Arabic versions of its pricing page gives each of the three pages the same set of four annotations: en, fr, ar and x-default, each with a full https address. The common mistake is a French page that points to English when the English page does not point back, so the pair is ignored.

Source: Tell Google about localized versions of your page, Google Search Central.

Related terms

How the terms connect