2

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>
unor
  • 21,739
  • 3
  • 46
  • 117
Brendan Vogt
  • 1,115
  • 4
  • 12
  • 22

1 Answers1

3

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>
unor
  • 21,739
  • 3
  • 46
  • 117