International SEO involves optimizing your website so search engines can identify which countries and languages your content targets. The hreflang attribute is the primary tool for indicating language and regional variations of your pages.
Serving content in the user's preferred language
Targeting users in specific geographic regions
Organizing URLs by language or region
| Method | Example | Pros | Cons |
|---|---|---|---|
| ccTLD | example.de |
Clear geo-targeting signal | Expensive, separate domains |
| Subdomain | de.example.com |
Easy to set up | May dilute authority |
| Subdirectory | example.com/de/ |
Consolidates authority | Weaker geo-signal |
| URL Parameter | example.com?lang=de |
Simple implementation | Not recommended for SEO |
Hreflang tells search engines about the relationship between pages in different languages. It helps serve the right content to the right users.
<link rel="alternate" hreflang="en" href="https://example.com/page/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/page/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/page/" />
hreflang="en"
hreflang="de"
hreflang="es"
Use ISO 639-1 language codes
hreflang="en-US"
hreflang="en-GB"
hreflang="es-MX"
Add ISO 3166-1 country codes when needed
Used as a fallback when no other hreflang value matches the user's language. Typically points to your homepage or a language selector page.
Add link tags in the <head> section of each page.
RecommendedFor non-HTML files like PDFs. Returned via HTTP response headers.
For PDFs/FilesDefine hreflang in sitemap for large sites with many language variations.
For Large Sites