如何创建标记以嵌入审阅者的职业,公司和位置? 职位名称适用于工作地点

<div itemprop="review" itemscope itemtype="http://schema.org/Review">
  <p itemprop="reviewBody">
    Lorem ipsum dolor sit a met
  </p>
  <p itemprop="author">Dr. Exaggerate</p>
  <small>CEO,Organisation,Country</small>
</div>

如何为评论者的职业,公司和位置(特定国家/地区)添加正确的商品属性?

jackykaka 回答:如何创建标记以嵌入审阅者的职业,公司和位置? 职位名称适用于工作地点

首先,关注此处的示例(有用): https://schema.org/Person

author值应该是以下类型之一:

  • 组织

我们使用Person属性来提供有关作者的更多语义数据。

职位名称

https://schema.org/jobTitle

<span itemprop="jobTitle">CEO</span>

适用于

https://schema.org/worksFor(预期为Organization type

<span itemprop="worksFor">Nike</span>

工作地点

https://schema.org/workLocation (或使用address属性-与您的数据相关)。

<div itemprop="workLocation" itemscope itemtype="http://schema.org/PostalAddress">
    <span itemprop="addressLocality">Paris,France</span>,</div>

完整示例

<div itemprop="review" itemscope itemtype="http://schema.org/Review">
  <p itemprop="reviewBody">
    Lorem ipsum dolor sit a met
  </p>
  <div itemprop="author" itemscope itemtype="http://schema.org/Person">
   <p itemprop="name">Dr. Chapaklal</p>
   <span itemprop="jobTitle">CEO</span>
   <span itemprop="worksFor">Nike</span>
   <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span itemprop="streetAddress">
      20341 Whitworth Institute
      405 N. Whitworth
    </span>
    <span itemprop="addressLocality">Paris,</div>
  </div>
</div>

enter image description here

本文链接:https://www.f2er.com/2302909.html

大家都在问