Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JoeyBurzynski/b0abb159310fff615050a9067a4c8e7c to your computer and use it in GitHub Desktop.
Save JoeyBurzynski/b0abb159310fff615050a9067a4c8e7c to your computer and use it in GitHub Desktop.
Sample Hreflang Annotations via HTML Markup
<!-- x-default: default when no language matches -->
<link rel="alternate" hreflang="x-default" href="https://www.mordorintelligence.com"/>
<!-- English (en) -->
<link rel="alternate" hreflang="en" href="https://www.mordorintelligence.com"/>
<!-- Arabic: macrolanguage (ar) -->
<link rel="alternate" hreflang="ar" href="https://www.mordorintelligence.sa"/>
<!-- Chinese (zh) -->
<link rel="alternate" hreflang="zh" href="https://www.mordorintelligence.cn"/>
<!-- French (fr) -->
<link rel="alternate" hreflang="fr" href="https://www.mordorintelligence.fr"/>
<!-- German (de) -->
<link rel="alternate" hreflang="de" href="https://www.mordorintelligence.de"/>
<!-- Italian (it) -->
<link rel="alternate" hreflang="it" href="https://www.mordorintelligence.it"/>
<!-- Japanese (jp) -->
<link rel="alternate" hreflang="ja" href="https://www.mordorintelligence.jp"/>
<!-- Korean (ko) -->
<link rel="alternate" hreflang="ko" href="https://www.mordorintelligence.kr"/>
<!-- Portuguese (pt) -->
<link rel="alternate" hreflang="pt" href="https://www.mordorintelligence.pt"/>
<!-- Russian (ru) -->
<link rel="alternate" hreflang="ru" href="https://www.mordorintelligence.ru"/>
<!-- Spanish / Castilian (es) -->
<link rel="alternate" hreflang="es" href="https://www.mordorintelligence.es"/>
<!-- Vietnamese (vi) -->
<link rel="alternate" hreflang="vi" href="https://www.mordorintelligence.vn"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment