我是一个新的微数据和做它为一个网站。这是一个BPO公司的网站,在其主页上,我使用了itemscope itemtype="http://schema.org/Organization"和它的子属性,如areaServed、makesOffer、location (PostalAddress)等。
现在,我必须将微数据用于同一站点的另一个页面,比如InboundServices页面,该页面又有5个服务,如CustomerService等。
因此,对于这些页面,我应该使用相同的Organization项目范围,还是可以使用WebPage项目范围或类似的东西?
发布于 2016-04-15 15:26:18
如果您愿意,您可以对站点上的每个页面(包括主页)使用WebPage (或它的一个子类型,如AboutPage)。
此外,您还可以为页面上的每个“实体”提供项(使用适当的类型)。
例如,如果每个页面都包含组织的名称和电话号码,那么您可以(而且应该)在每个页面上都有一个Organization项。
如果这样的项目是页面的主要实体(例如,主页的主要实体可能是Organization,博客帖子页的主要实体是BlogPosting等等),那么您可以使用mainEntity属性:
<body itemscope itemtype="http://schema.org/WebPage" itemid="http://example.com/">
<div itemprop="mainEntity" itemscope itemtype="http://schema.org/Organization">
</div>
</body><body itemscope itemtype="http://schema.org/ItemPage" itemid="http://example.com/blog/hello-world">
<article itemprop="mainEntity" itemscope itemtype="http://schema.org/BlogPosting">
</article>
</body>https://webmasters.stackexchange.com/questions/92463
复制相似问题