w3resource

Schema.org Book type tutorial

Book

In this page, we have discussed the Book type of the Schema.org. This tutorial covers description, properties, example and output of the example using Google Rich Snippets tool.

Hierarchy

Thing > CreativeWork > Book

Book type of Schema.org specifies a Book.

Properties

The following table describes the properties of Book:

Properties Which type should be used Description
bookEdition Text Specifies that edition of the associated Book.
bookFormat BookFormatType Specifies the format of the associated Book. Like paperback, Hardcover, EBook.
illustrator Person Refers the person done the illustration of the associated Book.
isbn Text Specifies the ISBN number of the Book.
numberOfPages Integer Specifies the number of pages of the associated Book.

Example

Example of Book without Microdata

<!DOCTYPE html >
<html lang="en">
<head>
<meta charset=utf-8>
<title>example of describing inforamtion of a Book without Microdata</title>
</head>
<body>
<img src="book.jpg" />
<p>Steve Jobs - Hardcover 
by Walter Issacson</p>
<p>4 stars -179 reviews</p>

<p>Price: $17.88</p>
<p>In Stock</p>

<p>Product details : </p> 
<p>Hardcover: 656 pages</p>
<p>Publisher: Simon & Schuster (October 24, 2011)</p>
<p>Language: English</p>
<p>ISBN-10: 1451648537</p>
<p>ISBN-13: 978-1451648539</p>
<p>Reviews:
</p>

<p>5 stars - <b>"Story of the man who put a dent in the universe. Well worth reading." </b>
By Dr. Chuck Chakrapani, October 25, 2011.</ps>
<p>Steve Jobs wanted to change the world, "put a dent in the universe." And he did. 
If you are interested in life and want to know how Jobs changed it right before our eyes, you should read this book.
</p>

<p>
5 stars - <b>"Gripping but amazingly incomplete" </b></p>
By David Dennis (West Palm Beach, FL United States), October 27, 2011</p>
<p>This is a gripping journey into the life of an amazing individual. Despite its girth of nearly 600 pages, the book zips along at a torrid pace.</p>
</body>
</html>

Example of Book with Microdata

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code of Book with Microdata</title>
<a rel="author" href="https://profiles.google.com/103074333439002308043/about">Bidhan Chatterjee</a>
</head>
<body>
<div itemscope itemtype="http://schema.org/Book">
<img itemprop="image" src="book.jpg" />
<span itemprop="name">Steve Jobs </span> -
<link itemprop="bookFormat" href="http://schema.org/Paperback">Hardcover
by Walter Issacson.
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">4</span> stars -
<span itemprop="reviewCount">179</span> reviews
</div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
Price: <span itemprop="price">$17.88</span>
<meta itemprop="priceCurrency" content="USD" />
<link itemprop="availability" href="http://schema.org/InStock">In Stock
</div>
Product details
<span itemprop="numPages">656</span> pages
Publisher: <span itemprop="publisher">Simon & Schuster</span> -
<meta itemprop="datePublished" content="2011-10-24">October 24, 2011
Language: <span itemprop="inLanguage">English</span>
ISBN-10: <span itemprop="isbn">1451648537</span>
ISBN-13: <span itemprop="isbn">978-1451648539</span>
Reviews:
<div itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<span itemprop="reviewRating">5</span> stars -
<b>"<span itemprop="name">Story of the man who put a dent in the universe. Well worth reading.</span>" </b>
by <span itemprop="author">Dr. Chuck Chakrapani</span>,
Written on <meta itemprop="datePublished" content="2011-10-25">October 25, 2011
<span itemprop="reviewBody">Steve Jobs wanted to change the world, "put a dent in the universe." 
And he did.  If you are interested in life and want to know how Jobs changed it right before our eyes, 
you should read this book.</span>
</div>
<div itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<span itemprop="reviewRating">5</span> stars -
<b>"<span itemprop="name">Gripping but amazingly incomplete.</span>" </b>
by <span itemprop="author">David Dennis</span>,
Written on <meta itemprop="datePublished" content="2011-10-27">October 27, 2011
<span itemprop="reviewBody">This is a gripping journey into the life of an amazing individual. 
Despite its girth of nearly 600 pages, the book zips along at a torrid pace.</span>
</div>
</body>
</html>

Result of testing the above code with Rich Snippets Tool

Book type example output

Previous: Schema.org WebPage Type tutorial
Next: Schema.org Recipe type tutorial

Test your Programming skills with w3resource's quiz.



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/schema.org/Book.php