Glossary

hreflang

Last updated

Overview

Also called hreflang tag, rel="alternate" hreflang

Definition: hreflang is an annotation that tells search engines which language or regional versions of a page exist, so they can show each searcher the most appropriate version.

Google accepts hreflang in HTML link elements, in HTTP headers or in a sitemap, and says the three methods are equivalent. Values use an ISO 639-1 language code, optionally followed by an ISO 3166-1 Alpha 2 region code. Each language version must list itself as well as all the other versions, and alternate URLs must be fully qualified, including https. The special value x-default marks a fallback page for languages not matched by any other version.

Example: a retailer’s UK English, US English and German pages each carry links to all three versions, labelled en-gb, en-us and de, plus an x-default link to a country selector.

Why it matters for site owners

Without hreflang, Google may still find the other versions, but it can show the wrong one, such as US prices to UK shoppers. Missing return links are a common reason annotations are ignored, so audit them whenever you add a locale.

  • Canonical tag

    A canonical tag is a link element with rel="canonical" that names the preferred URL among duplicate or very similar pages, so search engines can consolidate them.

  • XML sitemap

    An XML sitemap is a file that lists the pages, videos and other files on a site, with details such as when they were last updated, to help search engines crawl the site more efficiently.

Latest news

Our stories that use hreflang will appear here. Get the briefing to hear about them first. Meanwhile, the latest from AI SEO Wire:

Sources

  1. PrimaryGoogle Search Central

    Localized versions of your pages

    Checked

Get the briefing

Google and AI search changes, explained the day they land.

Unsubscribe from any email. Privacy policy

Add AI SEO Wire as a preferred source on Google