hreflang is a handshake, not a label
· 4-minute read · Measurement and growth · by Direct Softworks
A page that names its translation without being named back has declared nothing at all. Most broken hreflang is not wrong syntax, it is one side of a conversation.

The mental model most people have is that hreflang labels a page with its language. Add the tag, the label is applied, done.
It is not a label. It is an assertion about a relationship between two URLs, and an assertion only counts when both ends make it.
The return-link rule
If page A says "my Romanian version is B", Google checks whether B says "my English version is A". If B is silent, or names something else, the annotation from A is discarded.
Not downgraded. Ignored.
This is the single most common failure and it is invisible in every way that matters: A's HTML is valid, the tag is present, the target returns 200, and nothing in any tool warns you, because from A's perspective everything is correct. The problem is on the other side, in a page you were not looking at.
Which is why generating both sides from one source is the only reliable approach. We keep the pairs in a single list:
const LOCALE_PAIRS = [
["/", "/ro"],
["/services", "/ro/servicii"],
["/services/integrations", "/ro/automatizare-procese"],
];
Both pages read that same list, so a pair cannot exist in one direction. Hand-writing tags per page will eventually produce an orphan, usually when a URL is renamed six months later by somebody who does not know the other half exists.
Include yourself
Every page in a set must reference every page in the set, including itself.
<link rel="alternate" hreflang="en-GB" href="https://example.com/services" />
<link rel="alternate" hreflang="ro-RO" href="https://example.com/ro/servicii" />
<link rel="alternate" hreflang="x-default" href="https://example.com/services" />
The self-reference feels redundant and is required. A page that lists only its alternates and not itself is an incomplete set.
x-default is a fallback, not a default language
x-default is for the visitor whose language matches nothing in the set. It is not "the main version" and it is not required, though it is useful.
Point it at whichever page best serves someone you have no better answer for. For us that is the English page, because English is the wider net of the two. Pointing it at the Romanian page would be a reasonable choice for a business that only sells in Romania. Pointing it at a language selector page is the traditional advice and is usually worse than just picking one.
Region codes, and when not to use them
ro is a language. ro-RO is Romanian as used in Romania. en-GB is English as used in the United Kingdom.
Use a region code only when you genuinely serve different content to different regions. If you have one English page for the whole world, en is more accurate than en-GB, and en-GB will simply not be matched for a reader in Ireland or Canada unless you also declare an en fallback.
The common error is hreflang="ro" intended to mean Romania. It means the Romanian language, wherever it is spoken. There is no such thing as an hreflang value that means "this country" without also meaning a language.
Where to put it
Three channels, and they are equivalent: the HTML head, an HTTP header, or the XML sitemap.
The sitemap version is worth knowing about because it is the only one that works before either page has been crawled. Google can learn the pair from the sitemap and then fetch both, rather than fetching one, finding a tag, and queueing the other.
We emit both head tags and sitemap annotations. That is not duplication for its own sake: it is the pair being discoverable from two directions on a site where crawl budget is scarce enough that pages can sit unfetched for weeks.
What hreflang does not do
It does not make a page rank. It has no effect on authority.
What it does is help Google serve the right version of a page it was already going to serve, to the right reader. If your Romanian page does not rank at all, hreflang is not the reason and fixing it will not help. It matters at the point where you have two versions competing for the same query and you would rather they did not.
And it does not remove the duplicate content question when both versions are in the same language, which is the case people most often try to solve with it. Two English pages for the UK and Ireland are still two English pages; hreflang tells Google which to show where, and does not tell it that they are not duplicates.
Testing it
Do not read the tags. Fetch both pages and check reciprocity mechanically: for each declared alternate, fetch that URL and assert that it declares the original back. Ours is a script in the test suite, because the failure mode is exactly the kind a person confirms by eye and gets wrong.