Systems Librarian, Laurentian University
<!DOCTYPE html>
<html>
<div><strong>Blood ties</strong> / Garth Nix and Sean Williams.
<div><em>Author</em>: Nix, Garth.</div>
<div><em>Publication Info</em>:
New York, NY : Scholastic Inc., 2014.</div>
<div><em>Edition</em>: First edition.</div>
</div>
</html>
The above code renders in normal browsers roughly as:
For example:
<a href="http://example.com/id/Garth_Nix">
Nix, Garth
</a>
In this case, pointing off to some other web page, presumably about Garth Nix.
Delineating structured data in HTML using attributes.
vocab
: the vocabulary that defines the referenced types and their propertiestypeof
: the type of the thing being describedproperty
: the property of the described thingresource
: an identifier for a given thing on the pageprefix
: you can mix multiple vocabularies, if you have toThe typeof
property creates a new scope, which is (normally) limited to the HTML element on which it is defined, and children of that element.
<!DOCTYPE html>
<div typeof="Example">The scope starts here
<p>and continues
<span>through all of the nested
<em>child</em>
</span>
<span>elements</span>
</p>
</div>
<!DOCTYPE html>
<div><strong>Blood ties</strong> / Garth Nix and Sean Williams.
<div><em>Author</em>: Nix, Garth.</div>
<div><em>Publication Info</em>:
New York, NY : Scholastic Inc., 2014.
</div>
<div><em>Edition</em>: First edition.</div>
</div>
<!DOCTYPE html>
<div vocab="http://schema.org/" typeof="Book">
<strong property="name">Blood ties</strong> / Garth Nix and Sean Williams.
<div><em>Author</em>:
<span property="author">Nix, Garth.</span>
</div>
<div><em>Publication Info</em>:
<span property="publisher">New York, NY : Scholastic Inc.</span>,
<span property="datePublished">2014</span>.
</div>
<div><em>Edition</em>:
<span property="bookEdition">First edition.</span>
</div>
</div>
A Book
and a few of its attributes as plain text.
<!DOCTYPE html>
<div vocab="http://schema.org/" typeof="Book">
<strong property="name">Blood ties</strong> / Garth Nix and Sean Williams.
<div><em>Author</em>:
<span property="author" typeof="Person">
<span property="familyName">Nix</span>,
<span property="givenName">Garth</span>.
</span>
</div>
<div><em>Publication Info</em>:
<span property="publisher">New York, NY : Scholastic Inc.</span>,
<span property="datePublished">2014</span>.
</div>
</div>
A Person
can have attributes other than just familyName
and givenName
<!DOCTYPE html>
<div vocab="http://schema.org/" typeof="Book">
<strong property="name">Blood ties</strong> /
<span property="author" typeof="Person" resource="#author1">
<span property="name">Garth Nix</span>
</span> and Sean Williams.
<div><em>Author</em>:
<span property="author" typeof="Person" resource="#author1">
<span property="familyName">Nix</span>,
<span property="givenName">Garth</span>.
</span>
</div>
<div><em>Publication Info</em>:
<span property="publisher">New York, NY : Scholastic Inc.</span>,
<span property="datePublished">2014</span>.
</div>
<div><em>Edition</em>:
<span property="bookEdition">First edition.</span>
</div>
</div>
Avoiding redundant redundancies!
<!DOCTYPE html>
<div vocab="http://schema.org/" prefix="foaf: http://xmlns.com/foaf/0.1/">
<div typeof="Book">
<strong property="name">Blood ties</strong> /
<span property="author" typeof="Person foaf:Person" resource="#author1">
<span property="name">Garth Nix</span>
<link property="foaf:account" href="http://goo.gl/aaJejH">
</span> and Sean Williams.
<div><em>Author</em>:
<span property="author" typeof="Person" resource="#author1">
<span property="familyName">Nix</span>,
<span property="givenName">Garth</span>.
</span>
</div>
<div><em>Publication Info</em>:
<span property="publisher" typeof="Corporation">
<span property="location" typeof="PostalAddress">
<span property="addressLocality">New York</span>, <span property="addressRegion">NY</span>
</span> : <span property="name">Scholastic Inc.</span></span>,
<span property="datePublished">2014</span>.
</div>
<div><em>Edition</em>:
<span property="bookEdition">First edition.</span>
</div>
</div>
</div>
Because the world is described by more than one ontology.
Image generated by http://rdfa.info/play
* I am not an SEO consultant and this does not constitute SEO advice