Glossary Web & HTTP

hreflang

The hreflang attribute tells search engines which language and region each version of a page is for, so users see the right one.

Last reviewed:

AdSense Placeholder
Slot: header_reference_page

In more detail

Codes combine language and optional region (en, en-GB, es-MX), and x-default marks the fallback. Annotations must be reciprocal: every version lists all versions, including itself.

Try these tools

See also

  • Glossary Canonical URL
    A canonical URL is the preferred address of a page when several URLs show the same content, declared with `<link rel="canonical">`.
  • Guide How SEO Meta Tags Work
    Title, description, canonical, hreflang, robots.txt.
AdSense Placeholder
Slot: footer_leaderboard