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.
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 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.
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.
These term pages are coming soon to the glossary.
Strongly yes — without it Google may confuse the versions and show the wrong one, especially with literal translations. hreflang settles it.
ar is generic Arabic for any speaker; ar-eg targets Egypt specifically. Use the region code when content, pricing, or service is country-specific.