Skip to content

Instantly share code, notes, and snippets.

View strategyst's full-sized avatar

Daniel Lee strategyst

View GitHub Profile
@strategyst
strategyst / local-business-schema-microdata-html
Created September 1, 2016 17:55
Local business HTML with microdata schema
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h2><span itemprop="name">Super Shop</span></h2>
<p><span itemprop="description">A super shop that sells everything at super low prices.</span></p>
<address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">123 Example Street</span>
<span itemprop="addressLocality">Example Town</span>,
<span itemprop="addressRegion">Essex</span>
</address>
Phone: <a href="tel:01234567890"><span itemprop="telephone">01234 567890</span></a>
</div>
@strategyst
strategyst / local-business-schema-html
Created September 1, 2016 17:13
Local business information HTML minus microdata
<h2>Super Shop</h2>
<p>A super shop that sells everything at super low prices.</p>
<address>
123 Example Street<br/>
Example Town<br/>
Essex<br/>
</address>
Phone: <a href="tel:01234 567890">01234 567890</a>
@strategyst
strategyst / organization-sponsor-schema-json-ld
Created September 1, 2016 17:10
Organization and sponsor schema using JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Organization",
"name": "National Public Radio",
"url": "http://npr.org",
"sponsor":
{
"@type": "Organization",
"name": "GloboCorp",
@strategyst
strategyst / organization-sponsor-schema-microdata-html
Created September 1, 2016 17:05
Organization and sponsor HTML with microdata for schema.
<p itemscope itemprop="organization" itemtype="http://schema.org/Organization">
<a href="http://npr.org" itemprop="url">
<span itemprop="name">National Public Radio</span>
</a> has a sponsor:
<span itemprop="sponsor" itemscope itemtype="http://schema.org/Organization">
<a itemprop="url" href="http://www.example.com/GloboCorp">
<span itemprop="name">GloboCorp</span>
</a>
</span>.
</p>
@strategyst
strategyst / organization-sponsor-schema-html
Created September 1, 2016 16:55
Organization and sponsor HTML minus microdata
<p>
<a href="http://npr.org">National Public Radio</a> has a sponsor:
<a href="http://www.example.com/GloboCorp">GloboCorp</a>.
</p>