带有不可见项的微格式hreview [英] Microformats hreview with invisible item

查看:89
本文介绍了带有不可见项的微格式hreview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Google索引的网站上实现微格式的hreview部分.

I'm implementing the hreview portion of microformats on a site to be indexed by Google.

http://www.google.com/support/webmasters/bin/answer.py?answer = 146645

评论的item字段对我来说很笨拙,因为我无法想象为什么将评论中的项目名称包含在评论本身中.

The item field of a review feels clunky to me, since I can't imagine why I'd included the name of the item being reviewed inside the review itself.

例如.如果您在Yelp上,则有一个关于餐厅的页面.餐厅名称位于顶部,但在每个评论区域内重复餐厅名称也没有意义.

For example. If you are on Yelp there is a page about a restaurant. The name of the restaurant is at the top, but it wouldn't' make sense to repeat the restaurant name also inside each review block.

所以我想知道item字段是否是用户不可见并且仍可以被Google索引的字段之一?顺便说一句,我刚刚检查了一下,看来Yelp的用户对此字段带有display: none;.

So I'm wondering if the item field is one of the ones that can be invisible to the user and still indexed by google? Incidentally, I just checked and it looks like Yelp has this field with a display: none; to the user.

任何人都可以验证吗?

推荐答案

您是否有理由相信有些字段无法被Google隐藏并仍被索引?在我看来,Google会将所有隐藏字段编入索引,只是因为我怀疑是否值得对其进行检查.但是我不确定.

Do you have some reason to believe there are fields that can't be hidden and still indexed by Google? It seems likely to me that Google will index all hidden fields, just because I doubt it's worth checking for them. But I'm not sure about that.

不建议将隐藏字段用于微格式.微格式背后的核心思想是,您应该向计算机和人类展示相同的内容.如果内容不在页面上的任何地方,则违反了该想法.如果它在页面上的其他位置(通常是评论的情况),则可以使用包含模式.

Hiding fields isn't recommended for microformats. A core idea behind microformats is you should be presenting the same content to both computers and humans. If the content isn't anywhere on the page, that violates that idea. If it's somewhere else on the page, which is often the case for reviews, you can use the include pattern.

这篇关于带有不可见项的微格式hreview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆