本文介绍了多个描述元标记是否有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用不同语言定义多个元描述是否有效?
Is it valid to define multiple meta description with different languages? Is this valid?
<meta name="Description" lang="en_US" content="Something in here" />
<meta name="Description" lang="pt-BR" content="Algo aqui" />
<meta name="Description" lang="fo-BA" content="Foo bar" />
推荐答案
这不是一个好习惯。很可能搜索引擎会忽略它们,甚至惩罚你的垃圾邮件。
It's not a good practice. Most probably the search engines will ignore them or even penalize you for spam.
无论如何,为什么你会在同一页面上有多个描述元?我真的不认为你的网页会同时使用3种语言。
Anyway, why would you have multiple description meta on the same page? I don't really think that your page will be in 3 languages at the same time.
我想你会有一些语言选择功能或基于用户浏览器的自动选择语言设定。然后,您应根据所选语言输出适当的说明。
I suppose you will have some language selection function or automatic selection based on user's browser language settings. Then you should output the appropriate description based on the selected language.
这篇关于多个描述元标记是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!