2016-06-10 71 views
0

我正在尝试改进本地管道工网站的搜索引擎优化。我在联系人部分使用以下元素:提供服务列表的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

您可以添加OfferOfferCatalog一个s这些提供Service S:

<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的例子。