Skip to content

Instantly share code, notes, and snippets.

@jessotron
jessotron / local-schema-markup
Created September 25, 2015 01:31
Sample Schema Markup for LocalBusiness Data
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h1 itemprop="name">Elite SEM</h1>
<p itemprop="descripton">A performance-driven digital marketing agency.</p>
<p>Open: <time itemprop="openingHours" datetime="Mo-Fi 09:00-17:00">Monday-Friday 9am-5pm</time></p>
<p>Phone: <span itemprop="telephone" content="+16463502789">646-350-2789</span></p>
<address itemscope itemtype="http://schema.org/PostalAddress" itemprop="address">
<span itemprop="streetAddress">142 W 36th St, Fl 11</span>
<span itemprop="addressLocality">New York</span>,
<span itemprop="addressRegion">NY</span> <span itemprop="postalCode">10018</span>
</address>
@jessotron
jessotron / article-schema-markup
Created September 25, 2015 00:39
Sample Article Schema Markup (NewsArticle)
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"headline": "Emmys 2015: The 5 categories we're most excited to see",
"image": "http://rack.1.mshcdn.com/media/ZgkyMDE1LzA5LzIwLzQ0L2YyOGFiZmM5NmNkLmQ5ZjgxLmpwZwpwCXRodW1iCTEyMDB4NjI3IwplCWpwZw/418b1a9e/940/f28abfc9-6cd9-217b-8bc7-fd48dd3621a9_MM714-21.jpg",
"keywords": ["television","emmys","uncategorized","entertainment","tv","emmys-2015"],
"datePublished": "2015-09-20T13:39:38Z",
"articleSection": "entertainment",
"creator": "Sandra Gonzalez",
@jessotron
jessotron / rating-schema-markup
Created September 25, 2015 00:26
Sample Rating Schema
<div itemscope itemtype="http://schema.org/Thing">
<h2 itemprop="name"> Super Book </h2>
<div itemprop="description">Ultra interesting. Super impressive.</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div>Book rating:
<span itemprop="ratingValue">9</span>
<meta itemprop="bestRating" content="10"/>
<meta itemprop="worstRating" content="1"/>
based on <span itemprop="ratingCount">20</span> ratings
</div>
@jessotron
jessotron / app-schema-markup
Created September 24, 2015 23:29
Sample SoftwareApplication Schema Markup
<div itemscope itemtype="http://schema.org/MobileApplication">
<meta itemprop="url" content="https://play.google.com/store/apps/details?id=com.elitesem.calculator">
<h1 itemprop="name">SEM Calculator 2.0</h1>
Updated: <span itemprop="datePublished">September 3, 2014</span>
Size: <span itemprop="fileSize">1.9M</span>
Requires <span itemprop="operatingSystem">Android 2.3 and up</span>
Category: <span itemprop="applicationCategory">Business</span>
Rating:
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">4.0</span> (
@jessotron
jessotron / video-schema-markup
Created September 24, 2015 22:35
Sample VideoObject Schema Markup
<div itemscope itemtype="http://schema.org/VideoObject">
<link itemprop="url" href="http://www.ted.com/talks/boaz_almog_levitates_a_superconductor">
<meta itemprop="name" content="The levitating superconductor" />
<meta itemprop="description" content="How can a super-thin 3-inch disk levitate something 70,000 times its own weight? In a riveting demonstration, Boaz Almog shows how a phenomenon known as quantum locking allows a superconductor disk to float over a magnetic rail — completely frictionlessly and with zero energy loss. Experiment: Prof. Guy Deutscher, Mishael Azoulay, Boaz Almog, of the High Tc Superconductivity Group, School of Physics and Astronomy, Tel Aviv University." />
<meta itemprop="uploadDate" content="2015-02-05T08:00:00+08:00" />
<meta itemprop="duration" content="PT10M25S">
<img itemprop="thumbnailUrl" src="https://tedcdnpi-a.akamaihd.net/r/tedcdnpe-a.akamaihd.net/images/ted/b9693798223a4101be834398af15df5560d3f25c_1600x1200.jpg?quality=95&amp;w=480" />
</div>
@jessotron
jessotron / breadcrumb-schema-markup
Created September 24, 2015 21:14
Breadcrumb Sample Markup
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
<li itemprop="itemListElement" itemscope
itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://example.com/">
<span itemprop="name">Home</span></a>
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope
itemtype="http://schema.org/ListItem">
@jessotron
jessotron / event-schema-markup
Created September 25, 2015 01:47
Sample Event Schema Markup
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "MusicEvent",
"name": "AC/DC",
"image": "http://s1.ticketm.net/tm/en-us/dbimages/199365a.jpg",
"startDate": "2015-09-25T19:45:00-07:00",
"url": "http://www.ticketmaster.com/acdc-san-francisco-california-09-25-2015/event/1C004E43C5D25EDC?artistid=1170951&majorcatid=10001&minorcatid=200",
"location" : {
"@type": "Place",
@jessotron
jessotron / recipe-schema-markup
Created September 25, 2015 02:02
Sample Recipe Schema Markup
<div itemscope itemtype="http://schema.org/Recipe">
<link itemprop="url" href="http://allrecipes.com/recipe/12682/apple-pie-by-grandma-ople/" />
<meta itemprop="mainEntityOfPage" content="True" />
<img src="http://images.media-allrecipes.com/userphotos/720x405/736203.jpg" alt="Apple Pie by Grandma Ople" title="Apple Pie by Grandma Ople" itemprop="image" />
<h1 itemprop="name">Apple Pie by Grandma Ople</h1>
<div itemprop="description">"This was my grandmother's apple pie recipe. I have never seen another one quite like it. It will always be my favorite and has won me several first place prizes in local competitions. I hope it becomes one of your favorites as well!"</div>
Prep Time: <time itemprop="prepTime" datetime="PT30M">30 min</time>
Cook Time: <time itemprop="cookTime" datetime="PT1H">1 hour</time>
Total Time: <time itemprop="totalTime" datetime="PT1H30M">1 hour 30 min</time>
@jessotron
jessotron / website-schema-markup
Created September 24, 2015 20:42
Sample Website Schema Markup
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "Elite SEM",
"url" : "http://elitesem.com/",
"potentialAction" : {
"@type" : "SearchAction",
"target" : "http://elitesem.com/?s={search_term}",
"query-input" : "required name=search_term"
@jessotron
jessotron / org-schema-markup
Last active February 19, 2021 14:08
Sample Organization Schema Markup
<script type="application/ld+json">
{ "@context" : "http://schema.org",
"@type" : "Organization",
"legalName" : "Elite SEM",
"url" : "http://elitesem.com/",
"contactPoint" : [{
"@type" : "ContactPoint",
"telephone" : "+1-646-350-2789",
"contactType" : "customer service"
}]