Can I use custom language / country code combinations in hreflang?

一个人想着一个人 提交于 2019-11-28 14:24:37
unor

There is no list of "valid" combinations, as nobody can (nor should!) define which languages are spoken in which regions, or which linguistic variations exist.

HTML5 defines which content the hreflang attribute can have:

On Webmasters SE, I explained what this means (for the lang attribute, but it’s the same for hreflang): my answer to "Where do I get a list of attribute 'lang' values - what standard covers this, for SEO optimization?"

As you see, you only have to follow the rules from BCP 47 and choose tags from the Language Subtag Registry.

Thus da-GL is a valid value for hreflang/lang:

  1. da is the subtag for the language Danish
  2. - is the subtag separator
  3. GL is the subtag for the region Greenland
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!