Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active April 4, 2017 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/60fb44641a03a983f8e92abb83d94aea to your computer and use it in GitHub Desktop.
Save ryanburnette/60fb44641a03a983f8e92abb83d94aea to your computer and use it in GitHub Desktop.
These snippets are my Schema.org examples.
These snippets are my Schema.org examples.
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h1 itemprop="name">Acme Construction</h1>
<p itemprop="descripton">A builder of dangerous products.</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="+190455512345">904-555-1234</span></p>
<p>Email: <a href="mailto:info@acme.com" itemprop="email">info@acme.com</a></p>
<address itemscope itemtype="http://schema.org/PostalAddress" itemprop="address">
<span itemprop="streetAddress">123 Anystreet Ave</span>
<span itemprop="addressLocality">Jacksonville</span>,
<span itemprop="addressRegion">FL</span> <span itemprop="postalCode">32210</span>
</address>
</div>
<div itemscope itemtype="http://schema.org/BreadcrumbList">
<div itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://ryanburnette.com/">
<span itemprop="name">Home</span>
</a>
<meta itemprop="position" content="1" />
</div>
/
<div itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://ryanburnette.com/blog/">
<span itemprop="name">Blog</span>
</a>
<meta itemprop="position" content="2" />
</div>
/
<div itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="https://ryanburnette.com/blog/web-development/">
<span itemprop="name">Web Development</span>
</a>
<meta itemprop="position" content="3" />
</div>
</div>
<script type="application/ld+json">
{ "@context" : "http://schema.org",
"@type" : "Organization",
"legalName" : "Ryan Burnette",
"url" : "https://www.ryanburnette.com/",
"contactPoint" : [{
"@type" : "ContactPoint",
"telephone" : "+1-904-516-0359",
"contactType" : "customer service"
}]
"logo" : "https://www.ryanburnette.com/logo.png",
"sameAs" : [
"http://www.facebook.com/ryanburnette",
"http://www.twitter.com/ryanburnette",
"http://plus.google.com/ryanburnette",
"https://www.youtube.com/user/ryanburnette",
"http://www.linkedin.com/ryanburnette"
]
}
</script>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "Ryan Burnette",
"url" : "https://www.ryanburnette.com/",
"potentialAction" : {
"@type" : "SearchAction",
"target" : "http://www.ryanburnette.com/?s={search_term}",
"query-input" : "required name=search_term"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment