Пример микроразметки в формате microdata
<div itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Название товара</h1> <img src="Ссылка на фотографию" itemprop="image" /> <p itemprop="description">Описание товара</p> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">4.9</span> <span itemprop="reviewCount">42</span> </div> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="priceCurrency" content="RUB" /> <span itemprop="price">9.99</span> <span itemprop="availability">В наличии</span> </div> </div>
Название товара
<h1 itemprop="name">Название товара</h1>
Изображения
<img itemprop="image" src="https://example.com/photos/4x3/photo.jpg" />
Цены, валюта и наличие
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="priceCurrency" content="RUB" /> <span itemprop="price">9.99</span> <span itemprop="availability">В наличии</span> </div>
Ссылка
<link itemprop="url" href="Ссылка на товар" />
Описание
<p itemprop="description">Описание товара</p>
Рейтинг
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">4.9</span> <span itemprop="reviewCount">42</span> </div>
Модель
<meta itemprop="sku" content="0446310786" />
Бренд
<div itemprop="brand" itemtype="http://schema.org/Thing" itemscope> <meta itemprop="name" content="Название бренда" /> </div>
Дополнительно поддерживается формат JSON-LD для описания товара в виде JSON. Пример подобной разметки от Google
<script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Product", "name": "Executive Anvil", "image": [ "https://example.com/photos/1x1/photo.jpg", "https://example.com/photos/4x3/photo.jpg", "https://example.com/photos/16x9/photo.jpg" ], "description": "Sleeker than ACME's Classic Anvil.", "sku": "0446310786", "mpn": "925872", "brand": { "@type": "Thing", "name": "ACME" }, "review": { "@type": "Review", "reviewRating": { "@type": "Rating", "ratingValue": "4", "bestRating": "5" }, "author": { "@type": "Person", "name": "Fred Benson" } }, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.4", "reviewCount": "89" }, "offers": { "@type": "Offer", "url": "https://example.com/anvil", "priceCurrency": "USD", "price": "119.99", "priceValidUntil": "2020-11-05", "itemCondition": "https://schema.org/UsedCondition", "availability": "https://schema.org/InStock", "seller": { "@type": "Organization", "name": "Executive Objects" } } } </script>