SEO ToolsLesson 337Free preview
Hreflang Tag Generator
This lesson is part of Web Developer Tools · All levels
Summary
The hreflang attribute tells the search engine the language version and region of a page that contains equivalent content. Hreflang Tag Generator helps to create the correct tags for the ISO 639-1 language code and the ISO 3166-1 Alpha-2 area code. A good implementation directs users to the most appropriate version without hiding other pages.
Key points
- Hreflang uses language codes, e.g. id for Indonesia and en for English
- Area codes are added when necessary, e.g. en-US or en-GB
- X-default points to a fallback page for users that do not match other variants
- Each variant should be reciprocal.
- Hreflang does not translate pages; it only marks the equivalent version
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.