使用Google Rich Snippet将我的业务呈现为ChildCare
("A托儿中心"),我如何将我在设施中提供的服务(程序)指向itemprop="offers"
中的Offer
?
例如,我在儿童保育方面提供3种服务(项目),如"婴儿,幼儿和学龄前儿童"项目。我如何使用优惠来指向这些服务及其选项?
如果您想将服务建模为Offer
,您可以使用ChildCare
中的makesOffer
属性:
<div itemscope itemtype="http://schema.org/ChildCare">
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Infants</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Toddlers</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Preschoolers</span>
</div>
</div>
如果您想将服务建模为Service
,您可以使用Service
中的provider
属性:
<!-- because itemref gets used, this element may not be a child of another Microdata item -->
<div itemprop="provider" itemscope itemtype="http://schema.org/ChildCare" id="the-childcare-business">
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Infants</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Toddlers</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Preschoolers</span>
</div>
主要区别在于你可以为Offer
提供价格(price
/priceCurrency
),但不能为Service
提供价格。
当然你也可以同时使用这两种类型