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.
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:
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.