# hreflang in XML sitemaps

DevFeed: [hreflang in XML sitemaps](<https://devfeed.tech/articles/hreflang-in-xml-sitemaps-89119.md>)

Original publisher: [Read original article](<https://specification.website/spec/i18n/sitemap-hreflang/>)

Author: Joost de Valk

Published: 2026-05-29T18:54:03Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>), [SVG](<https://devfeed.tech/topics/svg.md>)

Tags: [google-search](<https://devfeed.tech/tags/google-search.md>), [html](<https://devfeed.tech/tags/html.md>), [i18n](<https://devfeed.tech/tags/i18n.md>), [implement](<https://devfeed.tech/tags/implement.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [locale](<https://devfeed.tech/tags/locale.md>), [optional](<https://devfeed.tech/tags/optional.md>), [sitemaps](<https://devfeed.tech/tags/sitemaps.md>), [xml](<https://devfeed.tech/tags/xml.md>)

## AI overview

Sitemaps can declare language and regional page alternates with the XML xhtml:link element, providing the same search-engine signal as inline hreflang tags. The article explains how to structure reciprocal alternate links, choose a delivery method, and verify the resulting clusters.

## Source excerpt

Declare language and regional alternates inside the XML sitemap with xhtml:link instead of in the HTML head. Easier to maintain at scale and keeps localisation metadata separate from content.