用于列出所提供服务的Schema.org标记

时间:2016-06-10 23:23:44

标签: seo schema.org

我正在努力改善当地水管工网站的搜索引擎优化。我在联系部分使用以下元素:

<div itemscope itemtype="http://schema.org/Plumber">  
 <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
 <span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">

我还想列出提供的服务。这些显示在列表中,包括:锅炉服务,安装,修复泄漏水龙头等。

我如何标记这些多项服务?

1 个答案:

答案 0 :(得分:1)

您可以添加OfferCatalog Offer个提供的Service

<div itemscope itemtype="http://schema.org/Plumber">
    <span itemprop="name">Mr. Plumber</span>
    <!-- other properties e.g. address -->
    <ul itemprop="hasOfferCatalog" itemscope itemtype="http://schema.org/OfferCatalog">
        <li itemprop="itemListElement" itemscope itemtype="http://schema.org/OfferCatalog">
            <span itemprop="name">Services offered</span>
            <ul itemprop="itemListElement" itemscope itemtype="http://schema.org/OfferCatalog">
                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Offer">
                    <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Service">
                        <span itemprop="name">Service one name</span>
                    </div>
                </li>
                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Offer">
                    <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Service">
                        <span itemprop="name">Service two name</span>
                    </div>
                </li>
            </ul>
        </li>
    </ul>
</div>

Google Structured Data Testing Tool

这是基于OfferCatalog

的示例