问题原文
原帖链接 · mat boy · CC BY-SA 3.0
On the Guardian.co.uk homepage they have:
<link rel="alternate" href="https://www.theguardian.com/uk" hreflang="en-GB"/>
<link rel="alternate" href="https://www.theguardian.com/us" hreflang="en-US"/>
<link rel="alternate" href="https://www.theguardian.com/au" hreflang="en-AU"/>
Each page displays different content. UK, US and AU show stories related to each country. Shouldn't the hreflang attribute show the same page with the same stories however those stories should be translated accordingly into the correct language? (Not the best example as UK, US and AU are similar) but strictly speaking, shouldn't it show the same content with the language changed?
已采纳解答
原帖链接 · unor · CC BY-SA 3.0
Yes, this doesn’t seem to be correct.
HTML defines that alternate+hreflang is for translations:
If the
alternatekeyword is used with thehreflangattribute, and that attribute’s value differs from the root element’s language, it indicates that the referenced document is a translation.
To be clear, the problem is not that the hreflang attribute is used (it’s correct to use it for such links), the problem is that the alternate link type is used in addition.
Search engines might of course have their own guidelines that don’t necessarily comply with the HTML specification. So authors might decide to ignore the HTML spec.
One of the three cases where Google recommends alternate+hreflang is:
Your content has small regional variations with similar content in a single language. For example, you might have English-language content targeted to the US, GB, and Ireland.
They don’t go into more detail about this case, so it’s not clear how exactly they understand "variations" and "similar", but I think cases like Guardian’s different editions are certainly not "small" variations.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
