问题原文
原帖链接 · Sanchit · CC BY-SA 3.0
I'm planning to add hreflang attribute to my websites which are in different languages, including my main website which is in English. So I have few questions regarding this.
Is the
hreflangattribute to be added only on the homepage or shall I add it on every page?On every language version of my website I shall mention all other website using
hreflanglike this?
已采纳解答
原帖链接 · GDVS · CC BY-SA 3.0
Yes, every page with an alternate. This is clearly stated in the specification:
rel="alternate" hreflang="x" is used as a page level, not a site level, and you need to mark up each set of pages, including the home page, as appropriate.
Emphasis mine.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
