For agencies managing international sites, correctly declaring language variants is essential for search visibility. This article outlines the technical steps for configuring hreflang tags, ensuring bidirectional links between pages, and selecting appropriate language subtags based on standard conventions.

Understanding the Need for Multilingual Page Declarations

In one planning scenario, an agency designer is preparing a small multilingual furniture portfolio for a client and has to decide how the English, French, and Simplified Chinese versions of the same page should point to one another. The designer's working folder contains three page drafts with matching layouts but different wording, a spreadsheet listing each page's language and region, and a short note from the client confirming that the French page is intended for readers in France while the Chinese page serves mainland readers. Nothing has been published yet; these are working materials assembled to make the annotation logic concrete.

The designer sketches three candidates for the same portfolio page: English at the default path, French under a regional folder, and Simplified Chinese under its own folder. In the spreadsheet, the language column holds entries such as "en," "fr-FR," and "zh-Hans-CN," written exactly as the designer records them rather than as a claim about what any validator accepts. A second column notes the intended audience, and a third marks which page is the default for visitors whose language is not represented.

One example of a choice worth spelling out: the designer considers whether the French page should declare "fr" alone or "fr-FR." The recorded reason for preferring "fr-FR" is that the client explicitly named France as the target, while the English page is left as plain "en" because no single English-speaking region was chosen. This pairing is the designer's own illustrative decision, not evidence of prior practice.

The designer also builds a tiny manifest for the three pages, with a title, its language tag, and the two counterparts it must reference. For instance, the English entry lists the French and Chinese pages as alternates, the French entry lists English and Chinese, and the Chinese entry lists the other two. A fourth line marks the default page for unmatched languages. Treating this manifest as the source of truth makes the reciprocal requirement visible before any markup is written, and it shows where a missing back-reference would break the set.

In the HTML method described by Google Search Central, each page variant carries a set of link elements in its head section, one link per variant including itself, and the set is identical on every version. Each link uses the rel attribute with the value alternate, plus hreflang and a fully-qualified href. Google states that if two pages do not both point to each other, the tags are ignored; partial sets may still be processed where links are mutual, but newly expanded language pages should be linked bidirectionally to the originating or dominant language pages.1

Google notes the link tags must sit inside a well-formed head element, and hreflang annotations should not be combined with other attributes such as media in a single link tag. Google also states it does not use hreflang or the HTML lang attribute to detect a page's language.1

You can now turn the three-page manifest into a small head-annotation worksheet before anything is pasted into a template. For each row, record the page path, its own language tag, the tag of each counterpart it will reference, and the direction of that reference. A worked line for the English portfolio page might read: path English default, own tag en, counterparts French and Simplified Chinese, references outbound to both; the French row then carries its own outbound reference back to English and onward to Chinese.

The bidirectional check is easier if you read the worksheet both ways. Pick one sibling pair, such as English and French, and trace each page’s declared counterpart in turn. If the English entry names French but the French entry omits English, mark that as a missing return link and correct the rows before moving to the next pair. You might also note beside each correction which version of the portfolio text it belongs to, so a later edit does not silently break the pairing.

For a self-referencing entry, add a column that asks whether the page declares itself. When filling it in, the designer can write the same tag in both the own-tag and self-reference fields, making an omitted self-reference visible at a glance. These columns are a personal record, not a required format; you can choose fewer fields if the three-page set stays manageable.

Selecting Appropriate Language Subtags from the Registry

The IANA Language Subtag Registry is a single long text file with nearly 8,000 entries, and it is the place to look up the subtags that make up a language tag. To find a primary language subtag, search that file for the language name; the match lands on the record's Description field, so the value you need is the one in the Subtag field, such as fr for French from a record whose Type is language.2

The source gives several cautions. Records with a Deprecated field should not be used; the Preferred-Value field usually names the replacement, as he replaces iw for Hebrew. A record whose Scope is collection stands for a group of related languages, so look for a more specific subtag. Macrolanguage records encompass narrower ones, for example ku covers ckb, kmr and sdh, yet backward compatibility can justify keeping the macrolanguage, as with zh for Mandarin Chinese.2

The source states that every language tag begins with a primary language subtag and that often this is all a tag needs, and its golden rule is to keep the tag as short as possible, adding subtags only when needed to distinguish the language in the context where the content is used.2

When you move from the worksheet to the tags themselves, you can check each row against the language subtag registry before writing it into the annotation. A practical next step is to open the worksheet column that holds the tag and, beside it, jot the registry entry you matched and the reason it fits: for example, German written as “de” where the page serves all German-speaking readers, or “de-AT” reserved for a page that truly reflects Austrian usage. This side note is your own record, not a requirement on the page.

The same column can separate current and archived announcements in your worksheet. For a current notice, you might record “en” with the note “all English readers, current.” For an archived notice retained only in its original French, you might record “fr” with the note “original language, archived, no counterpart.” You can decide whether a translated archive copy earns its own row or stays out of the set.

You might also flag tags you are unsure about rather than forcing a choice. A short question in the margin, such as whether “pt” or “pt-BR” better matches the text, keeps the decision visible for later review without committing the page yet.

Applying Case Conventions and Shortest Tag Principles

For these head annotations, the source states a golden rule for creating language tags: keep the tag as short as possible. It says to avoid region, script or other subtags except where they add useful distinguishing information, giving the example of using ja for Japanese rather than ja-JP unless there is a particular reason to say the content is Japanese as spoken in Japan rather than elsewhere.3

The source also describes registry case conventions. Language tags are lower case, alphabetic region subtags are upper case, and script subtags begin with an initial capital; this is only a convention, and the source says case should not matter for HTML and XML language markup.3

You can carry the case conventions from your worksheet into a short decision note before you draft any annotations. For the three-page portfolio, write one row per page and record the tag you chose, the reason, and the pairs it points to. A filled example might read: English page, tag “en,” reason “default and broadest audience,” pairs “fr and zh-Hans.” Repeat for French with “fr-CA” if your client confirmed Canadian French, and for Chinese with “zh-Hans” if the audience uses simplified characters. These entries are your own working notes, not a verdict from any registry.

You might then apply the shortest-tag principle by comparing each candidate against what the page actually serves. If the French page addresses readers in several regions, a plain “fr” may be the better fit; if the content names Canadian prices and spellings, keep “fr-CA.” Write both versions in the note and strike through the one you set aside, so the reasoning stays visible if a colleague reviews it later.

For current and archived announcements, reuse the same fields but adjust the note. A current notice might read “en, current, pairs with fr and zh-Hans”; an archived one might read “en, archived, self-reference only.” You can decide which archived pages still need counterparts, and leave a margin question when you are unsure rather than forcing a tag.

Handling Fallbacks and Catchall URLs for Unspecified Regions

For English pages serving several locales, Google Search Central recommends also providing a catchall URL for geographically unspecified users of that language: with en-IE, en-CA, and en-AU pages, a generic en page covers searchers in the US, UK, and other English-speaking locations, and that catchall page can be one of the specific pages if chosen.1

For languages no version matches, the reserved x-default value is used when no other language or region matches the user's browser setting; it is recommended for specifying the fallback page, was designed for language selector pages, and needs no language code. Google suggests considering such a fallback page for unmatched languages, especially on language or country selectors or auto-redirecting home pages.1

You can start by adding a catchall column to the worksheet you already prepared for the three-page portfolio. For each row, record which region the page truly serves and whether a regional tag or a plain language tag is the honest match. If the French page addresses readers in several countries, consider “fr” and note “no single region”; if it speaks only to one market, record the narrower tag and its reason. The English page might carry “en” with the note “catchall for unspecified regions,” while the Chinese page keeps its script-based tag.

You might also mark a fallback question beside each row: which page should a visitor from an unlisted region reasonably land on? For the portfolio, the designer can write “unspecified English readers → default English page” and leave the French and Chinese entries without that role. This keeps the catchall visible rather than letting it silently duplicate a regional tag.

When one page later becomes an archived notice, reuse the same two columns. The archived row might read “en, archived, catchall for unspecified regions,” while the current row reads “en, current, pairs with fr and zh-Hans.” You can decide whether the archived page still belongs in the annotation set or only in your notes.

Verifying Annotation Completeness Across All Language Variants

The W3C tutorial’s guidance addresses completeness at the page level: always add a lang attribute to the html element to set the default language, and mark content on the page that is in a different language. It also distinguishes language metadata about the expected audience from the language of the text itself, a distinction relevant when checking whether every variant is declared.4

For tag values, the tutorial says to choose tags from the IANA Subtag Registry, follow BCP 47 syntax rules when using more than just a language subtag, and keep language tags as short as possible. It notes that dialectal differences, such as US and British English, may need to be referred to in a standard way. It advises against using the meta element with http-equiv set to Content-Language.4

You can take the three-page worksheet you built earlier and run one completeness pass over it before drafting any annotations. For each page row, re-read the recorded counterparts and confirm that every sibling listed there also lists this page back; if the French row names English and Simplified Chinese, both of those rows should name French in turn. Mark any row where the return reference is missing.

You might also add a short status column so the same worksheet survives later revision. A current notice row could read “English, current, returns to French and Simplified Chinese,” while an archived notice row reads “English, archived, returns to French and Simplified Chinese only.” Filling in a couple of rows this way shows whether the fields still fit both cases.

Where a page stands alone with no equivalent version, you can note that explicitly rather than leaving the cell blank, so a later reader knows the absence was a decision. Treat these as your own working notes, not as requirements handed down from anywhere.

Frequently asked questions

How can I turn a three-page manifest into a head-annotation worksheet before pasting anything into a template?

You can now turn the three-page manifest into a small head-annotation worksheet before anything is pasted into a template. For each row, record the page path, its own language tag, the tag of each counterpart it will reference, and the direction of that reference.

How can I mark an omitted self-reference so it is visible at a glance in my worksheet?

For a self-referencing entry, add a column that asks whether the page declares itself. When filling it in, the designer can write the same tag in both the own-tag and self-reference fields, making an omitted self-reference visible at a glance.

How can I run a completeness pass over my worksheet to confirm that counterparts point back to each other?

You can take the three-page worksheet you built earlier and run one completeness pass over it before drafting any annotations. For each page row, re-read the recorded counterparts and confirm that every sibling listed there also lists this page back; if the French row names English and Simplified Chinese, both of those rows should name French in turn.