Hreflang
Hreflang is an HTML attribute that tells search engines which language and region each version of a page targets, so they show the right version to each user.
If you have the same page in English for the UK, English for the US and Spanish for Mexico, hreflang annotations connect them and tell search engines which to show where.
In more detail
Hreflang can be added in the HTML head, in HTTP headers or in the XML sitemap. Each version must list every other version, including itself, and the references must be reciprocal. Codes use ISO language codes, optionally with a region, such as en-gb or es-mx. An x-default value covers users who match none of the versions. Errors are very common, such as missing return links or pointing at redirected URLs.
Why it matters
Correct hreflang prevents the wrong regional version from ranking, reduces duplicate content issues between similar language versions and improves the experience for international visitors.
An online retailer's US pages keep ranking in Australia, showing US prices. Adding hreflang for en-us, en-au and en-gb versions fixes it, and Australian conversion rates rise.