Development

Hreflang Tags

HTML attributes that tell search engines which language and region a page targets.

Definition

Hreflang tags are HTML link elements or HTTP headers that inform search engines about the language and regional targeting of web pages. They help Google and other search engines serve the correct language version to users and prevent duplicate content issues. Proper hreflang implementation is critical for international SEO.

Examples

  • <link rel='alternate' hreflang='en-US' href='https://example.com/en-us/page'>
  • <link rel='alternate' hreflang='es' href='https://example.com/es/page'>
  • <link rel='alternate' hreflang='x-default' href='https://example.com/page'>
  • HTTP header: Link: <url>; rel='alternate'; hreflang='de'

Frequently Asked Questions

What is x-default hreflang?

x-default is a special hreflang value for the fallback page when no other language matches. Use it for: language selector pages, your 'default' language, or catch-all pages. Every hreflang set should include x-default.

Do hreflang tags affect rankings?

Hreflang doesn't directly boost rankings but ensures the right page ranks for the right audience. Without hreflang, search engines may show wrong language versions or flag pages as duplicates. Proper implementation improves user experience signals.

Related Terms

Ready to simplify your i18n workflow?

Start managing translations with IntlPull.

    Hreflang Tags - Definition & Examples | IntlPull Glossary | IntlPull