Schema.org 所提供服务列表的标记
Schema.org markup for listing of provided services
我正在尝试改进本地水管工网站的搜索引擎优化。我在联系部分使用以下元素:
<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">
我还想列出所提供的服务。这些显示在列表中,包括:锅炉服务、安装、修理漏水的水龙头等。
我将如何标记这些多项服务?
您可以添加 OfferCatalog of Offers which are the provided Services:
<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>
这是基于 OfferCatalog 的示例。
我正在尝试改进本地水管工网站的搜索引擎优化。我在联系部分使用以下元素:
<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">
我还想列出所提供的服务。这些显示在列表中,包括:锅炉服务、安装、修理漏水的水龙头等。
我将如何标记这些多项服务?
您可以添加 OfferCatalog of Offers which are the provided Services:
<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>
这是基于 OfferCatalog 的示例。