2016-06-10 50 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的例子。