Skip to content

Instantly share code, notes, and snippets.

@joffilyfe
Created June 1, 2017 18:31
Show Gist options
  • Save joffilyfe/170c767d4ecd413ca91752a34531d1d7 to your computer and use it in GitHub Desktop.
Save joffilyfe/170c767d4ecd413ca91752a34531d1d7 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head xmlns="http://www.w3.org/1999/xhtml" prefix="schema: http://schema.org/">
<meta charset="utf-8">
<meta property="schema:educationalUse">
<title >Structured data with schema.org</title>
</head>
<body typeof="schema:TechArticle">
<h1 property="schema:name schema:headline">Structured data with schema.org </h1>
<img property="schema:image" style="float:right" src="squares.png" />
<p class="byline">By
<span property="schema:author" typeof="schema:Person" resource="#authorName">
<a href="http://example.com/AuthorName" property="sameAs">
<span property="schema:name"><span property="schema:givenName">Dan</span> <span proprerty="schema:familyName">Scott</span></span>
</a>
</span>,
<time property="schema:datePublished" content="2014-01-29">January 29, 2014</time>
</p>
<div property="schema:description">
<h2>About this exercise</h2>
</div>
<div property="schema:articleBody">
<h2>Exercise 1: From basic HTML to RDFa: first steps</h2>
<h2>Exercise 2: Embedded types</h2>
<h2>Exercise 3: To things</h2>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment