SEO Glossary

hreflang (hreflang)

The hreflang tag goes in the page’s <head> (<link rel="alternate" hreflang="ar-eg" href="...">), telling Google: this page has versions in other languages or regions, and this one suits this visitor. Without it, Google may treat translations as duplicates or show visitors the wrong version.

Correct format and codes

Codes combine language (ISO 639-1) and optionally region (ISO 3166-1): ar for generic Arabic, ar-eg for Egyptian Arabic, en-us for US English. There's a special x-default for the fallback version. Try my free hreflang generator tool for ready-to-paste tags.

The golden rule: reciprocity

The top requirement — hreflang must be reciprocal: every page links to itself and all other versions, and every version links back. If the Arabic page references the English one but not vice versa, Google ignores all the tags. The most common implementation mistake.

hreflang in sitemap instead of head

For large sites, put the tags in the sitemap instead of repeating them in every <head>. Google supports both. The same reciprocity and format rules apply, and every version must be indexable.

Related terms

Canonical Tag XML Sitemap International SEO

These term pages are coming soon to the glossary.

FAQ

hreflang questions

My site is Arabic + English — do I need hreflang?

Strongly yes — without it Google may confuse the versions and show the wrong one, especially with literal translations. hreflang settles it.

ar vs ar-eg — what's the difference?

ar is generic Arabic for any speaker; ar-eg targets Egypt specifically. Use the region code when content, pricing, or service is country-specific.