Skip to content
Skillpedia
SEO75k · #2869

hreflang

What it does

This skill checks that a site with several languages or regions tells search engines how its pages relate. It is for site owners who publish in more than one language.

When to use it

  • ✓When your site has the same page in English, French and other languages.
  • ✓When search results show the wrong language version to users.
  • ✓When you add a new language or region to an existing site.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hreflang/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hreflang/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you add the right language tags so French users see the French page?”

5 new skills a week. 1 minute to read.

How it works

The agent checks for hreflang tags that link each language version to the others, including an x-default fallback. It also checks that the links go both ways and use the correct language codes.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Add hreflang tags for multilingual sites

Without hreflang, users searching in French might see your English page—proper implementation ensures the right language version appears in search results for each region.

Quick Reference

  • hreflang tells search engines which language version to show users
  • Always include x-default for fallback/language selector pages
  • Must be reciprocal—all pages must link to all variations
  • Use ISO 639-1 language codes and ISO 3166-1 Alpha-2 regions

Check

Check if this multilingual website properly implements hreflang tags for language and regional targeting.

Fix

Add appropriate hreflang tags to indicate language and regional variations of this page.

Explain

Explain how hreflang tags help search engines serve the correct language version to users in different regions.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Add hreflang tags for multilingual sites. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/i18n/hreflang

FAQ

What is x-default?

It is a fallback tag for pages that suit any visitor, such as a language selector page.

Why must the links go both ways?

The skill says every version must link to all the others, otherwise search engines may ignore the tags.

Which codes are used?

The skill uses ISO 639-1 language codes and ISO 3166-1 Alpha-2 region codes.

Details

Original description by the author

Use when auditing metadata, crawlability, structured data, or indexability related to Add hreflang tags for multilingual sites. Verify the rendered HTML and HTTP response rather than relying only on source files.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2869
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills