Search and SEO

What is hreflang?

hreflang is an annotation telling search engines which language or regional version of a page to show to which audience. It requires genuinely equivalent pages, reciprocal annotations between every version, and a self-reference on each — a cluster missing any of those is discarded.

Also called: hreflang tag · language targeting

The three rules

  1. Every page in a cluster references every page in the cluster, including itself
  2. Annotations are reciprocal — if A points at B, B must point back at A
  3. The pages are genuine equivalents, not merely related

When the right answer is none

A single English site on a generic domain selling into several English-speaking countries needs no hreflang, because there are no alternates. The common failure is declaring hreflang="en" and hreflang="x-default" both pointing at the same URL — technically valid, completely inert, and a sign nobody checked.

Code format

  • Language is ISO 639-1: en, fr, de. Region is ISO 3166-1 Alpha-2: GB, CA, IE
  • en-GB is valid; en-UK is not, and it is the single most common error
  • Language alone is valid; region alone is not
  • One x-default per cluster, for users no other annotation matches

Where this is covered in depth

A definition can only go so far. hreflang, and the honest answer that most sites do not need it covers this properly — 2 minutes, free, no email required.

Who wrote this

Anas Bin Masud builds e-commerce sites and does technical SEO for businesses in the UK, Canada and Pakistan. These definitions come from client work rather than from a content brief — where an entry describes a mistake, it is usually one found on a real site. More about how I work.

Related terms

All 184 terms in the glossary →

Want this handled rather than explained?

Send the brief and you get a reply within one business day — either questions, or a scoping call. If your project is not something I should take on, I will say so then.

Response
Replies within 1 business day
Hours
Mon–Fri, 09:00–18:00 PKT — overlaps 05:00–14:00 UK, 00:00–09:00 US Eastern
Booking
Booking projects from October 2026
WhatsApp — opens a chat with +92 346 5348466 in a new tab