Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Googleのリッチスニペットに相当するSchema.orgのexampleをコピペしてきた。いくつか切り捨ててるのは独断。無いよりマシの精神で無理なく追加していきましょう。 動作テスト:
<!--商品とレビュー -->
<!-- -->
<!-- -->
<div itemscope itemtype="">
<span itemprop="name">Kenmore White 17" Microwave</span>
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
<!-- 集計レビュー -->
<div itemprop="aggregateRating"
itemscope itemtype="">
Rated <span itemprop="ratingValue">3.5</span>/5
based on <span itemprop="reviewCount">11</span> customer reviews
<div itemprop="offers" itemscope itemtype="">
<span itemprop="price">$55.00</span>
<link itemprop="availability" href="" />In stock
Product description:
<span itemprop="description">0.7 cubic feet countertop microwave.
Has six preset cooking categories and convenience features like
Add-A-Minute and Child Lock.</span>
<!-- 個別レビュー -->
<div itemprop="review" itemscope itemtype="">
<span itemprop="name">Value purchase</span> -
by <span itemprop="author">Lucas</span>,
<meta itemprop="datePublished" content="2011-03-25">March 25, 2011
<div itemprop="reviewRating" itemscope itemtype="">
<meta itemprop="worstRating" content = "1"/>
<span itemprop="ratingValue">4</span>/
<span itemprop="bestRating">5</span>stars
<span itemprop="description">Great microwave for the price. It is small and
fits in my apartment.</span>
<!-- 人物 -->
<!-- -->
<div itemscope itemtype="">
<span itemprop="name">Jane Doe</span>
<img src="janedoe.jpg" itemprop="image" />
<span itemprop="jobTitle">Professor</span>
<div itemprop="address" itemscope itemtype="">
<span itemprop="streetAddress">
20341 Whitworth Institute
405 N. Whitworth
<span itemprop="addressLocality">Seattle</span>,
<span itemprop="addressRegion">WA</span>
<span itemprop="postalCode">98052</span>
<span itemprop="telephone">(425) 123-4567</span>
<a href="" itemprop="email"></a>
Jane's home page:
<a href="" itemprop="url"></a>
<!-- 会社と組織 -->
<!-- -->
<div itemscope itemtype="">
<span itemprop="name"> (GOOG)</span>
Contact Details:
<div itemprop="address" itemscope itemtype="">
Main address:
<span itemprop="streetAddress">38 avenue de l'Opera</span>
<span itemprop="postalCode">F-75002</span>
<span itemprop="addressLocality">Paris, France</span>
Tel:<span itemprop="telephone">( 33 1) 42 68 53 00 </span>,
Fax:<span itemprop="faxNumber">( 33 1) 42 68 53 01 </span>,
E-mail: <span itemprop="email">secretariat(at)</span>
- National Scientific Members in 100 countries and territories: Country1, Country2, ...
- Scientific Union Members, 30 organizations listed in this Yearbook:
<span itemprop="member" itemscope itemtype="">
<span itemprop="member" itemscope itemtype="">
<!-- レシピ -->
<!-- -->
<div itemscope itemtype="">
<span itemprop="name">Mom's World Famous Banana Bread</span>
By <span itemprop="author">John Smith</span>,
<meta itemprop="datePublished" content="2009-05-08">May 8, 2009
<img itemprop="image" src="bananabread.jpg" />
<span itemprop="description">This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
Prep Time: <meta itemprop="prepTime" content="PT15M">15 minutes
Cook time: <meta itemprop="cookTime" content="PT1H">1 hour
Yield: <span itemprop="recipeYield">1 loaf</span>
<div itemprop="nutrition"
itemscope itemtype="">
Nutrition facts:
<span itemprop="calories">240 calories</span>,
<span itemprop="fatContent">9 grams fat</span>
- <span itemprop="ingredients">3 or 4 ripe bananas, smashed</span>
- <span itemprop="ingredients">1 egg</span>
- <span itemprop="ingredients">3/4 cup of sugar</span>
<span itemprop="recipeInstructions">
Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add
the flour last. Pour the mixture into a loaf pan and bake for one hour.
<meta itemprop="interactionCount" content="UserComments:140" />
From Janel, May 5 -- thank you, great recipe!
<!-- イベント -->
<!-- -->
<div class="event-wrapper" itemscope itemtype="">
<div class="event-date" itemprop="startDate" content="2013-09-14T21:30">Sat Sep 14</div>
<div class="event-title" itemprop="name">Typhoon with Radiation City</div>
<div class="event-venue" itemprop="location" itemscope itemtype="">
<span itemprop="name">The Hi-Dive</span>
<div class="address" itemprop="address" itemscope itemtype="">
<span itemprop="streetAddress">7 S. Broadway</span><br>
<span itemprop="addressLocality">Denver</span>,
<span itemprop="addressRegion">CO</span>
<span itemprop="postalCode">80209</span>
<div class="event-time">9:30 PM</div>
<span itemprop="offers" itemscope itemtype="">
<div class="event-price" itemprop="price">$13.00</div>
<a itemprop="url" href="">Tickets</a>
<!-- 音楽(アルバムと楽曲)-->
<!-- -->
<div itemscope itemtype="">
<h1 itemprop="name"> King of Limbs </h1>
<meta content="/artist/radiohead/album/the-king-of-limbs" itemprop="url" />
<img src="king-of-limbs.jpg" itemprop="image" />
<meta content="8" itemprop="numTracks" />
<meta content="Alt/Punk" itemprop="genre" />
<h2 itemprop="byArtist" itemscope itemtype="">
<span itemprop="name">Radiohead</span>
<h3>Sample Tracks</h3>
<div itemprop="track" itemscope itemtype="">
<span itemprop="name">Bloom</span>
<meta content="/artist/radiohead/album/the-king-of-limbs/track/bloom" itemprop="url" />
<meta content="PT5M14S" itemprop="duration" />5:14
<div itemprop="track" itemscope itemtype="">
<span itemprop="name">Morning Mr Magpie</span>
<meta content="/artist/radiohead/album/the-king-of-limbs/track/morning-mr-magpie" itemprop="url" />
<meta content="PT4M40S" itemprop="duration" />4:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment