# Hreflang examples

> Hreflang annotations from 10 real homepages including Apple, Microsoft, Wise and HubSpot, with annotation counts, x-default use and what to copy.

Canonical: https://scaplet.com/examples/hreflang

Examples Examples · International

Hreflang annotations from 10 real homepages including Apple, Microsoft, Wise and HubSpot, with annotation counts, x-default use and what to copy.

10

real examples

Nov 2, 2026

captured

4

templates

Scaplet Editorial Team

editor

In one line

Hreflang annotations tell Google which URL serves which language or region. We read the head of 10 real homepages: 480 annotations in all, from 7 on HubSpot to 137 on Apple. Seven include an x-default fallback and three don't. Eight list the URL we fetched among their alternates. Google says each version must list itself and every other version.

## Across 10 captures

Counted from the captured files

9 of 10

Regional

8 of 10

Many locales

7 of 10

X default

3 of 10

No x default

10 examples

## Real hreflang examples, _fetched_.

Each one was fetched from the live site on the date shown, with a link to the source. Filter by pattern or industry.

Apple [apple.com ↗](https://www.apple.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" href="https://www.apple.com/" hreflang="en-US" /> <link rel="alternate" href="https://www.apple.com/ae-ar/" hreflang="ar-AE" /> <link rel="alternate" href="https://www.apple.com/ae/" hreflang="en-AE" /> <link rel="alternate" href="https://www.apple.com/am/" hreflang="en-AM" /> <link rel="alternate" href="https://www.apple.com/at/" hreflang="de-AT" /> <link rel="alternate" href="https://www.apple.com/au/" hreflang="en-AU" /> <link rel="alternate" href="https://www.apple.com/az/" hreflang="en-AZ" /> <link rel="alternate" href="https://www.apple.com/befr/" hreflang="fr-BE" /> <link rel="alternate" href="https://www.apple.com/benl/" hreflang="nl-BE" /> <link rel="alternate" href="https://www.apple.com/bg/" hreflang="bg-BG" />
```

Numbers

Annotations

137

x-default

No

Lists itself

Yes

- 137 hreflang annotations in the head
- No x-default fallback
- 137 language-plus-region codes, for example en-US

**Why it works.** 137 annotations, every one a language-plus-region code such as en-US for the US site and ar-AE for the Arabic UAE one. It lists itself, and has no x-default.

**Copy this.** Use language-plus-region codes when each country has its own page, and list every version on every version.

- Tech
- No x default
- Regional
- Many locales

Dropbox [dropbox.com ↗](https://www.dropbox.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" href="https://www.dropbox.com/da_DK/" hreflang="da-dk"> <link rel="alternate" href="https://www.dropbox.com/de/" hreflang="de-de"> <link rel="alternate" href="https://www.dropbox.com/" hreflang="en"> <link rel="alternate" href="https://www.dropbox.com/" hreflang="x-default"> <link rel="alternate" href="https://www.dropbox.com/en_GB/" hreflang="en-gb"> <link rel="alternate" href="https://www.dropbox.com/es/" hreflang="es"> <link rel="alternate" href="https://www.dropbox.com/es_ES/" hreflang="es-es"> <link rel="alternate" href="https://www.dropbox.com/fr/" hreflang="fr"> <link rel="alternate" href="https://www.dropbox.com/fr_CA/" hreflang="fr-ca"> <link rel="alternate" href="https://www.dropbox.com/id/" hreflang="id-id">
```

Numbers

Annotations

24

x-default

Yes

Lists itself

Yes

- 24 hreflang annotations in the head
- Includes an x-default fallback
- 20 language-plus-region codes, for example da-dk

**Why it works.** 24 annotations including x-default, with codes like da-dk and en-gb. The English version and x-default both point at the root, https://www.dropbox.com/.

**Copy this.** Point x-default at the version you want unmatched visitors to see, often the same as your main language.

- SaaS
- X default
- Regional
- Many locales

HubSpot [hubspot.com ↗](https://www.hubspot.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" href="https://www.hubspot.com" hreflang="x-default"> <link rel="alternate" href="https://www.hubspot.com" hreflang="en"> <link rel="alternate" href="https://www.hubspot.es" hreflang="es"> <link rel="alternate" href="https://www.hubspot.fr" hreflang="fr-FR"> <link rel="alternate" href="https://www.hubspot.de" hreflang="de-DE"> <link rel="alternate" href="https://www.hubspot.jp" hreflang="ja-JP"> <link rel="alternate" href="https://br.hubspot.com" hreflang="pt-BR">
```

Numbers

Annotations

7

x-default

Yes

Lists itself

Yes

- 7 hreflang annotations in the head
- Includes an x-default fallback
- 4 language-plus-region codes, for example fr-FR

**Why it works.** Only 7 annotations: x-default and en at the root, es, fr-FR, de-DE, ja-JP, and pt-BR. Each locale is a separate domain or subdomain: hubspot.es, hubspot.fr, hubspot.de, hubspot.jp, br.hubspot.com.

**Copy this.** A small set is fine. Alternates can live on different domains if each page lists the others.

- SaaS
- X default
- Regional
- Few locales

Microsoft [microsoft.com/en-us/ ↗](https://www.microsoft.com/en-us/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" hreflang="en-us" href="https://www.microsoft.com/en-us"/> <link rel="alternate" hreflang="en-nz" href="https://www.microsoft.com/en-nz"/> <link rel="alternate" hreflang="de-at" href="https://www.microsoft.com/de-at"/> <link rel="alternate" hreflang="fr-be" href="https://www.microsoft.com/fr-be"/> <link rel="alternate" hreflang="nl-be" href="https://www.microsoft.com/nl-be"/> <link rel="alternate" hreflang="da-dk" href="https://www.microsoft.com/da-dk"/> <link rel="alternate" hreflang="fi-fi" href="https://www.microsoft.com/fi-fi"/> <link rel="alternate" hreflang="en-ie" href="https://www.microsoft.com/en-ie"/> <link rel="alternate" hreflang="en-hk" href="https://www.microsoft.com/en-hk"/> <link rel="alternate" hreflang="zh-hk" href="https://www.microsoft.com/zh-hk"/>
```

Numbers

Annotations

100

x-default

Yes

Lists itself

Yes

- 100 hreflang annotations in the head
- Includes an x-default fallback
- 99 language-plus-region codes, for example en-us

**Why it works.** 100 annotations on an en-us page, 99 of them language-plus-region (en-nz, de-at, fr-be). It lists itself and includes x-default.

**Copy this.** Use region codes for markets that share a language but have different pages, like en-nz and en-ie.

- Tech
- X default
- Regional
- Many locales

Mozilla [mozilla.org/en-US/ ↗](https://www.mozilla.org/en-US/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" hreflang="an" href="https://www.mozilla.org/an/" title="aragonés"> <link rel="alternate" hreflang="ar" href="https://www.mozilla.org/ar/" title="عربي"> <link rel="alternate" hreflang="az" href="https://www.mozilla.org/az/" title="Azərbaycanca"> <link rel="alternate" hreflang="be" href="https://www.mozilla.org/be/" title="Беларуская"> <link rel="alternate" hreflang="bg" href="https://www.mozilla.org/bg/" title="Български"> <link rel="alternate" hreflang="bn" href="https://www.mozilla.org/bn/" title="বাংলা"> <link rel="alternate" hreflang="bs" href="https://www.mozilla.org/bs/" title="Bosanski"> <link rel="alternate" hreflang="ca" href="https://www.mozilla.org/ca/" title="Català"> <link rel="alternate" hreflang="cs" href="https://www.mozilla.org/cs/" title="Čeština"> <link rel="alternate" hreflang="cy" href="https://www.mozilla.org/cy/" title="Cymraeg">
```

Numbers

Annotations

86

x-default

No

Lists itself

Yes

- 86 hreflang annotations in the head
- No x-default fallback
- 19 language-plus-region codes, for example en-CA

**Why it works.** 86 annotations, mostly language codes (an, ar, az, be) with a few regional ones such as en-CA. Lists itself, no x-default.

**Copy this.** A language-first scheme works when most locales are language-wide. Consider adding an x-default.

- Nonprofit
- No x default
- Regional
- Many locales

Notion [notion.com ↗](https://www.notion.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" hrefLang="en" href="https://www.notion.com/" data-next-head=""/> <link rel="alternate" hrefLang="ko" href="https://www.notion.com/ko" data-next-head=""/> <link rel="alternate" hrefLang="ja" href="https://www.notion.com/ja" data-next-head=""/> <link rel="alternate" hrefLang="fr" href="https://www.notion.com/fr" data-next-head=""/> <link rel="alternate" hrefLang="de" href="https://www.notion.com/de" data-next-head=""/> <link rel="alternate" hrefLang="es-es" href="https://www.notion.com/es-es" data-next-head=""/> <link rel="alternate" hrefLang="es" href="https://www.notion.com/es" data-next-head=""/> <link rel="alternate" hrefLang="pt" href="https://www.notion.com/pt" data-next-head=""/> <link rel="alternate" hrefLang="fi" href="https://www.notion.com/fi" data-next-head=""/> <link rel="alternate" hrefLang="da" href="https://www.notion.com/da" data-next-head=""/>
```

Numbers

Annotations

24

x-default

Yes

Lists itself

Yes

- 24 hreflang annotations in the head
- Includes an x-default fallback
- 4 language-plus-region codes, for example es-es

**Why it works.** 24 annotations including x-default, mostly language-only codes (ko, ja, fr, de) and es-es next to a plain es.

**Copy this.** You can offer both es and es-es if you have both a general and a Spain-specific page.

- SaaS
- X default
- Regional
- Many locales

Semrush [semrush.com ↗](https://www.semrush.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" hreflang="en" href="https://www.semrush.com/"> <link rel="alternate" hreflang="de" href="https://de.semrush.com/"> <link rel="alternate" hreflang="es" href="https://es.semrush.com/"> <link rel="alternate" hreflang="fr" href="https://fr.semrush.com/"> <link rel="alternate" hreflang="it" href="https://it.semrush.com/"> <link rel="alternate" hreflang="nl" href="https://nl.semrush.com/"> <link rel="alternate" hreflang="pl" href="https://pl.semrush.com/"> <link rel="alternate" hreflang="pt" href="https://pt.semrush.com/"> <link rel="alternate" hreflang="sv" href="https://sv.semrush.com/"> <link rel="alternate" hreflang="vi" href="https://vi.semrush.com/">
```

Numbers

Annotations

14

x-default

No

Lists itself

Yes

- 14 hreflang annotations in the head
- No x-default fallback
- Lists its own URL among the alternates

**Why it works.** 14 annotations, language codes only (en, de, es, fr and others), one subdomain per language such as de.semrush.com. No x-default.

**Copy this.** Subdomains per language work if every version lists the full set, itself included.

- Seo
- No x default
- Language only
- Few locales

Trello [trello.com ↗](https://trello.com/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" href="https://www.trello.com/home" hrefLang="x-default"/> <link rel="alternate" href="https://www.trello.com/cs/home" hrefLang="cs"/> <link rel="alternate" href="https://www.trello.com/de/home" hrefLang="de"/> <link rel="alternate" href="https://www.trello.com/en-AU/home" hrefLang="en-AU"/> <link rel="alternate" href="https://www.trello.com/en-GB/home" hrefLang="en-GB"/> <link rel="alternate" href="https://www.trello.com/en-US/home" hrefLang="en-US"/> <link rel="alternate" href="https://www.trello.com/es/home" hrefLang="es"/> <link rel="alternate" href="https://www.trello.com/fr/home" hrefLang="fr"/> <link rel="alternate" href="https://www.trello.com/it/home" hrefLang="it"/> <link rel="alternate" href="https://www.trello.com/hu/home" hrefLang="hu"/>
```

Numbers

Annotations

24

x-default

Yes

Lists itself

No

- 24 hreflang annotations in the head
- Includes an x-default fallback
- 6 language-plus-region codes, for example en-AU

**Why it works.** 24 annotations with x-default, six language-plus-region codes (en-AU, en-GB, en-US). Our fetched URL isn't one of the alternates as written; the English one is listed as /home.

**Copy this.** Make the URL a visitor lands on match the URL you list, character for character.

- SaaS
- X default
- Regional
- Many locales

Wise [wise.com/us/ ↗](https://wise.com/us/) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" hrefLang="en" href="https://wise.com/gb/" data-next-head=""/> <link rel="alternate" hrefLang="en-GB" href="https://wise.com/gb/" data-next-head=""/> <link rel="alternate" hrefLang="en-AE" href="https://wise.com/ae/" data-next-head=""/> <link rel="alternate" hrefLang="en-AU" href="https://wise.com/au/" data-next-head=""/> <link rel="alternate" hrefLang="en-HK" href="https://wise.com/hk/" data-next-head=""/> <link rel="alternate" hrefLang="en-IE" href="https://wise.com/ie/" data-next-head=""/> <link rel="alternate" hrefLang="en-IN" href="https://wise.com/in/" data-next-head=""/> <link rel="alternate" hrefLang="en-CA" href="https://wise.com/ca/" data-next-head=""/> <link rel="alternate" hrefLang="en-MY" href="https://wise.com/my/" data-next-head=""/> <link rel="alternate" hrefLang="en-NZ" href="https://wise.com/nz/" data-next-head=""/>
```

Numbers

Annotations

46

x-default

Yes

Lists itself

Yes

- 46 hreflang annotations in the head
- Includes an x-default fallback
- 31 language-plus-region codes, for example en-GB

**Why it works.** 46 annotations on the /us/ page. The plain en points at /gb/, and en-GB points there too, while en-AE, en-AU, en-IN and others each have a country path.

**Copy this.** Be deliberate about what bare en means. Here it resolves to the UK page.

- Fintech
- X default
- Regional
- Many locales

Zoom [zoom.com/en ↗](https://www.zoom.com/en) captured Nov 2, 2026

Excerpt
hreflang

```
<link rel="alternate" href="https://www.zoom.com" hreflang="en"> <link rel="alternate" href="https://www.zoom.com/es" hreflang="es"> <link rel="alternate" href="https://www.zoom.com/de" hreflang="de"> <link rel="alternate" href="https://www.zoom.com/zh-cn" hreflang="zh-cn"> <link rel="alternate" href="https://www.zoom.com/zh-tw" hreflang="zh-tw"> <link rel="alternate" href="https://www.zoom.com/fr" hreflang="fr"> <link rel="alternate" href="https://www.zoom.com/pt" hreflang="pt"> <link rel="alternate" href="https://www.zoom.com/ja" hreflang="ja"> <link rel="alternate" href="https://www.zoom.com/ru" hreflang="ru"> <link rel="alternate" href="https://www.zoom.com/ko" hreflang="ko">
```

Numbers

Annotations

18

x-default

Yes

Lists itself

No

- 18 hreflang annotations in the head
- Includes an x-default fallback
- 2 language-plus-region codes, for example zh-cn

**Why it works.** 18 annotations with x-default, mostly language-only (es, de, fr, ja) plus zh-cn and zh-tw. We fetched /en, while the English alternate is listed as the root.

**Copy this.** Check redirects and trailing paths against the URLs in your hreflang set.

- SaaS
- X default
- Regional
- Many locales

Side by side

## Apple vs HubSpot.

Two captures that solve the same job differently. Numbers come from the captures.

Apple apple.com

```
<link rel="alternate" href="https://www.apple.com/" hreflang="en-US" /> <link rel="alternate" href="https://www.apple.com/ae-ar/" hreflang="ar-AE" /> <link rel="alternate" href="https://www.apple.com/ae/" hreflang="en-AE" /> <link rel="alternate" href="https://www.apple.com/am/" hreflang="en-AM" /> <link rel="alternate" href="https://www.apple.com/at/" hreflang="de-AT" /> <link rel="alternate" href="https://www.apple.com/au/" hreflang="en-AU" /> <link rel="alternate" href="https://www.apple.com/az/" hreflang="en-AZ" /> <link rel="alternate" href="https://www.apple.com/befr/" hreflang="fr-BE" />
```

- 137 hreflang annotations in the head
- No x-default fallback
- 137 language-plus-region codes, for example en-US

HubSpot hubspot.com

```
<link rel="alternate" href="https://www.hubspot.com" hreflang="x-default"> <link rel="alternate" href="https://www.hubspot.com" hreflang="en"> <link rel="alternate" href="https://www.hubspot.es" hreflang="es"> <link rel="alternate" href="https://www.hubspot.fr" hreflang="fr-FR"> <link rel="alternate" href="https://www.hubspot.de" hreflang="de-DE"> <link rel="alternate" href="https://www.hubspot.jp" hreflang="ja-JP"> <link rel="alternate" href="https://br.hubspot.com" hreflang="pt-BR">
```

- 7 hreflang annotations in the head
- Includes an x-default fallback
- 4 language-plus-region codes, for example fr-FR

| Apple | HubSpot |
| Annotations | 137 | 7 |
| x-default | No | Yes |
| Lists itself | Yes | Yes |

Pattern library

## 4 patterns to _copy_.

Templates we wrote from what the examples have in common. Replace the placeholders in braces.

01

### Language-only set with x-default

One page per language, regardless of country.

Our template

```
<link rel="alternate" hreflang="en" href="https://{your-domain}/{page}"> <link rel="alternate" hreflang="de" href="https://{your-domain}/de/{page}"> <link rel="alternate" hreflang="fr" href="https://{your-domain}/fr/{page}"> <link rel="alternate" hreflang="x-default" href="https://{your-domain}/{page}">
```

02

### Language plus region

Several markets share a language but have different pages (prices, shipping, legal).

Our template

```
<link rel="alternate" hreflang="en-US" href="https://{your-domain}/us/{page}"> <link rel="alternate" hreflang="en-GB" href="https://{your-domain}/gb/{page}"> <link rel="alternate" hreflang="en-AU" href="https://{your-domain}/au/{page}">
```

03

### Separate domains

A country-code domain per market. Alternates may be on different domains.

Our template

```
<link rel="alternate" hreflang="en" href="https://{your-domain}.com/{page}"> <link rel="alternate" hreflang="de-DE" href="https://{your-domain}.de/{page}"> <link rel="alternate" hreflang="fr-FR" href="https://{your-domain}.fr/{page}">
```

04

### Sitemap alternates

Many locales, where listing them on every page head would bloat the HTML.

Our template

```
<url> <loc>https://{your-domain}/{page}</loc> <xhtml:link rel="alternate" hreflang="en" href="https://{your-domain}/{page}"/> <xhtml:link rel="alternate" hreflang="de" href="https://{your-domain}/de/{page}"/> </url>
```

_01_Worth knowing

## What 10 homepages declare

We fetched each page on 2 November 2026 from India and counted the [hreflang](/glossary/hreflang) `link` elements in the head. The URLs are US or global versions, such as apple.com, wise.com/us/ and microsoft.com/en-us/, and some sites vary [markup](/glossary/structured-data) by region.

### x-default is common, not universal

Seven of 10 include it. Apple, Mozilla and Semrush don't.

### Alternates sit in three URL shapes

Folders (Apple, Dropbox, Microsoft, Notion), subdomains (Semrush) and separate domains (HubSpot).

### Two don't match the URL we fetched

Trello and Zoom list their English page at a different path than the one we requested, probably because of a redirect. Check that yours match exactly.

hreflang in the head, captured 2026-11-02
| Site | Annotations | x-default | Lists the fetched URL | Language-plus-region codes |
| apple.com | 137 | No | Yes | 137 |
| dropbox.com | 24 | Yes | Yes | 20 |
| hubspot.com | 7 | Yes | Yes | 4 |
| microsoft.com | 100 | Yes | Yes | 99 |
| mozilla.org | 86 | No | Yes | 19 |
| notion.com | 24 | Yes | Yes | 4 |
| semrush.com | 14 | No | Yes | 0 |
| trello.com | 24 | Yes | No | 6 |
| wise.com | 46 | Yes | Yes | 31 |
| zoom.com | 18 | Yes | No | 2 |

_02_Rules in Google's guide

## What Google says

Google's localized versions guide gives three equivalent ways to declare versions: HTML `link` elements, HTTP headers and sitemaps. Each version must list itself as well as all other versions, and if two pages don't point to each other, the tags are ignored. Alternate URLs must be fully qualified, including http or [https](/glossary/https), and don't need to be on the same domain.

Rule

### Return links

What it says

Each language version must list itself and every other version; without both pages pointing to each other, the tags are ignored

Rule

### Codes

What it says

Only ISO 639-1 language codes and ISO 3166-1 Alpha 2 region codes are supported; you can't specify a country code by itself

Rule

### [x-default](/glossary/x-default)

What it says

A reserved value used when no other language or region matches the user's browser setting

Rule

### URLs

What it says

Fully qualified, including http or https

Rule

### HTML placement

What it says

The link tags must be inside a well-formed head

**Google and MDN differ on codes**MDN describes the hreflang attribute as purely advisory and says values should be valid BCP 47 language tags. Google supports a narrower set of ISO codes for Search, so follow Google's list for annotations you want it to read.

Google suggests a fallback page for unmatched languages, especially on language or country selectors or auto-redirecting home pages. That is the case x-default is for. Apple's, Mozilla's and Semrush's captures have none, which isn't an error but leaves unmatched visitors without a declared fallback.

_03_How it works

## Check it on your own site

Count the annotations and confirm x-default is present. We ran both commands against HubSpot's homepage and got 7 annotations and the x-default link, matching the capture.

1. 1

### Find your own URL in the list

Search the output for the page you fetched. Its href should appear exactly as written.
2. 2

### Open two alternates

Fetch two other versions and confirm each lists the first. A missing return link means Google ignores both.
3. 3

### Check the codes

Language codes should be ISO 639-1, region codes ISO 3166-1 Alpha 2, and a region never appears alone.

Run against your own URL

```
# count hreflang annotations in the served HTML curl -sL https://example.com/ | grep -io '<link[^>]*hreflang=[^>]*>' | wc -l # x-default curl -sL https://example.com/ | grep -io '<link[^>]*hreflang="x-default"[^>]*>'
```

**Check every locale**The free audit at /site-audit reads canonicals, redirects and status codes, which catch a hreflang URL that redirects or errors.

Sources · 12

## Every fact, linked and dated.

Official docs first, then every capture with the date we fetched it.

- google.com
- mozilla.org
- apple.com
- dropbox.com
- hubspot.com
- microsoft.com
- notion.com
- semrush.com

1. 01 [Tell Google about localized versions of your page (Google Search Central)](https://developers.google.com/search/docs/specialty/international/localized-versions) developers.google.com · checked 2026-11-01
2. 02 [link element, hreflang attribute (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link) developer.mozilla.org · checked 2026-11-01
3. 03 [Apple hreflang](https://www.apple.com/) apple.com · checked 2026-11-02
4. 04 [Dropbox hreflang](https://www.dropbox.com/) dropbox.com · checked 2026-11-02
5. 05 [HubSpot hreflang](https://www.hubspot.com/) hubspot.com · checked 2026-11-02
6. 06 [Microsoft hreflang](https://www.microsoft.com/en-us/) microsoft.com · checked 2026-11-02
7. 07 [Mozilla hreflang](https://www.mozilla.org/en-US/) mozilla.org · checked 2026-11-02
8. 08 [Notion hreflang](https://www.notion.com/) notion.com · checked 2026-11-02
9. 09 [Semrush hreflang](https://www.semrush.com/) semrush.com · checked 2026-11-02
10. 10 [Trello hreflang](https://trello.com/) trello.com · checked 2026-11-02
11. 11 [Wise hreflang](https://wise.com/us/) wise.com · checked 2026-11-02
12. 12 [Zoom hreflang](https://www.zoom.com/en) zoom.com · checked 2026-11-02

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ Does each page need to list itself in hreflang?

Yes. Google's guide says each language version must list itself as well as all other language versions. Eight of our 10 captures list the URL we fetched; Trello and Zoom's lists use a different path for the English page.

_02_ Is x-default required?

No. Google calls it a reserved value for when no other language or region matches, and suggests a fallback page, but 3 of our 10 captures (Apple, Mozilla, Semrush) don't include one.

_03_ Can I use a country code alone in hreflang?

No. Google says you can't specify the country code by itself. Use a language code, optionally followed by a region code, such as en-GB.

_04_ Where can I declare hreflang?

In the HTML head, in HTTP headers or in a sitemap. Google says the three methods are equivalent. All 10 captures here use link elements in the head.

## Keep learning

[All examples](/examples)

[Examples 404 page examples](/examples/404-page) [Examples Alt text examples](/examples/alt-text) [Examples Breadcrumb schema examples](/examples/breadcrumb-schema) [Examples Canonical tag examples](/examples/canonical-tag)

Profiles of sites in this gallery
[Apple AI crawler access](/domains/apple.com) [HubSpot AI crawler access](/domains/hubspot.com) [Microsoft AI crawler access](/domains/microsoft.com)

More examples
[404 page examples](/examples/404-page) [Alt text examples](/examples/alt-text) [Breadcrumb schema examples](/examples/breadcrumb-schema) [Canonical tag examples](/examples/canonical-tag) [FAQ schema examples](/examples/faq-schema) [H1 tag examples](/examples/h1-tag) [Hreflang examples](/examples/hreflang) [llms.txt examples](/examples/llms-txt) [Meta description examples](/examples/meta-description) [Product schema examples](/examples/product-schema) [robots.txt examples](/examples/robots-txt) [Schema markup examples](/examples/schema-markup) [Sitemap examples](/examples/sitemap) [Title tag examples](/examples/title-tag)

Terms on this page
[Hreflang](/glossary/hreflang) [Structured data](/glossary/structured-data) [HTTPS](/glossary/https) [x-default](/glossary/x-default)

Free · 2 minutes

## Seen the examples? _Now check your own site._

The free audit reads your robots.txt, title tags, meta descriptions, structured data and status codes, and lists what to fix.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
