如何为一本有多个作者的书编写标记?
这就是我目前所拥有的,它只为一位作者标记:
<div itemscope itemtype="http://schema.org/Book">
<h1>My Book</h1>
<p>by
<span itemprop="author">
<span itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Author 1</span>
</span>
</span>
</p>
</div>我只需要添加这样的多个作者吗?
<span itemprop="author">
<span itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Author 1</span>
</span>
</span>
<span itemprop="author">
<span itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Author 2</span>
</span>
</span>
<span itemprop="author">
<span itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Author 3</span>
</span>
</span>发布于 2016-01-26 14:40:58
是的,提供多个author属性。
但是请注意,itemprop必须在带有itemscope的元素上指定。
<div itemscope itemtype="http://schema.org/Book">
<span itemprop="author" itemscope itemtype="http://schema.org/Person"></span>
<span itemprop="author" itemscope itemtype="http://schema.org/Person"></span>
<span itemprop="author" itemscope itemtype="http://schema.org/Person"></span>
</div>https://webmasters.stackexchange.com/questions/89179
复制相似问题