How to Implement Hreflang Tags for International SEO
Hreflang tags tell search engines which language and regional version of a page to show users. Learn proper implementation to avoid duplicate content issues.
Key Takeaways
- Hreflang signals to search engines that multiple versions of a page exist in different languages or for different regions.
- <link rel="alternate" hreflang="en" href="https://example.com/page" />
- Every page must include a hreflang tag pointing to itself.
- Hreflang tags must be reciprocal.
- The `x-default` hreflang indicates the default or fallback page for users whose language/region doesn't match any specific version.
SERP Preview
Preview how your page appears in Google search results
What Hreflang Does
Hreflang signals to search engines that multiple versions of a page exist in different languages or for different regions. Without hreflang, Google might show the English page to French users, or treat translations as duplicate content.
Syntax
Self-Referencing Required
Every page must include a hreflang tag pointing to itself. If the French page links to the English version, it must also link to itself as the French version.
Return Tags Required
Hreflang tags must be reciprocal. If Page A references Page B, Page B must reference Page A. Missing return tags cause Google to ignore the hreflang.
x-default
The x-default hreflang indicates the default or fallback page for users whose language/region doesn't match any specific version. Typically points to the English version or a language-selection page.
Implementation Methods
Hreflang can be implemented via HTML tags, HTTP headers (for non-HTML resources), or XML sitemaps. Sitemaps are recommended for sites with many languages because they don't add markup to every page.
相关工具
相关格式
相关指南
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta tags for SEO, Open Graph for social sharing, and Twitter Card markup.
Structured Data and Schema.org: A Practical Guide
Structured data helps search engines understand your content and can generate rich results like star ratings, FAQs, and product cards. Learn how to implement Schema.org markup effectively with JSON-LD.
Robots.txt and Sitemap.xml: Crawl Control Best Practices
Robots.txt and sitemap.xml are the primary tools for controlling how search engines discover and crawl your site. Misconfiguration can accidentally block important pages or waste crawl budget on irrelevant ones.
Core Web Vitals: LCP, INP, and CLS Explained
Core Web Vitals are Google's metrics for measuring real-world user experience. This guide explains LCP, INP, and CLS, their impact on search rankings, and practical strategies for improving each metric.
Troubleshooting Google Search Console Errors
Google Search Console reports crawling, indexing, and structured data errors that directly affect your search visibility. This guide helps you interpret and fix the most common GSC error types.