What is hreflang?

DefinitionHreflang is an HTML link attribute, also usable in HTTP headers and XML sitemaps, that tells search engines which language and region each version of a page is meant for so they can show users the right one.

A page that exists in several languages or regional versions lists every version, including itself, using link elements with an hreflang value such as en, en-GB or fr-CA. The annotations must be reciprocal, so each version points to all the others. An x-default value marks the page to show when none of the listed languages or regions match the user.

Hreflang is a core tool in international search engine optimization. It helps search engines avoid treating translated or regional pages as duplicates and reduces the chance that a visitor in one country lands on another country's prices or language. Mistakes such as missing return links or wrong codes are common, so many sites generate the annotations automatically, often inside their sitemaps.

hreflang resources

Topics: SEO and search, Web development

Cite this definition
APA

What is hreflang? (2026, November 22). Glossary. https://glossary.io/hreflang/

MLA

“What Is hreflang?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/hreflang/.

Chicago

“What Is hreflang?” Glossary. Coywolf. November 22, 2026. https://glossary.io/hreflang/.

HTML link
<a href="https://glossary.io/hreflang/">What is hreflang?</a>

Published