Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: Schema.org/Book with multiple authors How would one write markup for a book with multiple authors? This is what I currently have, it is marked up for just one author: <div itemscope itemtype="http://schema.org/Book">

@Turnbaugh106

Posted in: #Html5 #Microdata #SchemaOrg

How would one write markup for a book with multiple authors?

This is what I currently have, it is marked up for just one author:

<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>


Would I just need to add multiple authors like this?

<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>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sherry384

Yes, provide multiple author properties.

But note that the itemprop has to be specified on the element with the 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>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme