The short answer
Hreflang is an annotation that tells Google which version of a page is intended for which language or country — for example English for the UK, English for the UAE and Arabic for Saudi Arabia — so the right version appears in each market.
How hreflang is implemented
Each page lists all its alternates, including itself, with codes such as en-GB, en-AE or ar-SA, plus an x-default for users who match none. Annotations can live in the HTML head, in HTTP headers or in the XML sitemap.
When you need it
- You publish the same content in Arabic and English.
- You have country versions with different prices, currencies or legal terms.
- You run separate pages for the UK and US with spelling and offer differences.
Common errors
Missing return links (page A references B but B does not reference A), incorrect language or country codes, pointing hreflang at redirected or non-canonical URLs, and relying on automatic IP redirects that stop search engines seeing every version.