What would be the best way to specify e.g. multiple copyrights or authors using the <meta>
tag? Should we use a <meta>
tag with the same name multiple times?
什么是指定例如的最佳方式多个版权或使用 标签的作者?我们应该多次使用同名的 标签吗?
<meta name="copyright" content="Company A" />
<meta name="copyright" content="Company B" />
Will the search engine respect both values? Or, is it better to comma-separate them?
搜索引擎会尊重这两个值吗?或者,用逗号分隔它们会更好吗?
Thanks.
2 个解决方案
#1
18
Using multiple meta tags with the same name is valid HTML.
使用具有相同名称的多个元标记是有效的HTML。
But we don't know how search engines and other readers will interpret them. Either two meta tags will be concatenated or one of them will be ignored/overwritten.
但我们不知道搜索引擎和其他读者会如何解释它们。两个元标记将被连接,或者其中一个将被忽略/覆盖。
Example: The PHP-function get_meta_tags()
will ignore multiple meta tags with an equal name.
示例:PHP函数get_meta_tags()将忽略具有相同名称的多个元标记。
To avoid possible problems I would recommend to use a single meta tag:
为避免可能出现的问题,我建议使用单个元标记:
<meta name="copyright" content="Company A, Company B" />
#2
6
If the page contains multiple meta tags of the same type, Google will aggregate the content values. For instance, they will interpret
如果页面包含多个相同类型的元标记,Google将汇总内容值。例如,他们会解释
<META NAME="ROBOTS" CONTENT="NOINDEX">
<META NAME="ROBOTS" CONTENT="NOFOLLOW">
The same way as:
同样的方式:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
More details here:http://googlewebmastercentral.blogspot.ro/2007/03/using-robots-meta-tag.html
更多细节:http://googlewebmastercentral.blogspot.ro/2007/03/using-robots-meta-tag.html
I guess most other search engines would handle the meta tags in the same way.
我想其他大多数搜索引擎都会以同样的方式处理元标记。
#1
18
Using multiple meta tags with the same name is valid HTML.
使用具有相同名称的多个元标记是有效的HTML。
But we don't know how search engines and other readers will interpret them. Either two meta tags will be concatenated or one of them will be ignored/overwritten.
但我们不知道搜索引擎和其他读者会如何解释它们。两个元标记将被连接,或者其中一个将被忽略/覆盖。
Example: The PHP-function get_meta_tags()
will ignore multiple meta tags with an equal name.
示例:PHP函数get_meta_tags()将忽略具有相同名称的多个元标记。
To avoid possible problems I would recommend to use a single meta tag:
为避免可能出现的问题,我建议使用单个元标记:
<meta name="copyright" content="Company A, Company B" />
#2
6
If the page contains multiple meta tags of the same type, Google will aggregate the content values. For instance, they will interpret
如果页面包含多个相同类型的元标记,Google将汇总内容值。例如,他们会解释
<META NAME="ROBOTS" CONTENT="NOINDEX">
<META NAME="ROBOTS" CONTENT="NOFOLLOW">
The same way as:
同样的方式:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
More details here:http://googlewebmastercentral.blogspot.ro/2007/03/using-robots-meta-tag.html
更多细节:http://googlewebmastercentral.blogspot.ro/2007/03/using-robots-meta-tag.html
I guess most other search engines would handle the meta tags in the same way.
我想其他大多数搜索引擎都会以同样的方式处理元标记。