Systems Librarian, Laurentian University
<!DOCTYPE html>
<html>
Blood ties / Garth Nix and Sean Williams.
Author: Nix, Garth.
Publication Info:
New York, NY : Scholastic Inc., 2014.
Edition: First edition.
</html>
The above code renders in normal browsers roughly as:
For example:
Nix, Garth
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>
The scope starts here
and continues
through all of the nested
child
elements
<!DOCTYPE html>
Blood ties / Garth Nix and Sean Williams.
Author: Nix, Garth.
Publication Info:
New York, NY : Scholastic Inc., 2014.
Edition: First edition.
<!DOCTYPE html>
Blood ties / Garth Nix and Sean Williams.
Author:
Nix, Garth.
Publication Info:
New York, NY : Scholastic Inc.,
2014.
Edition:
First edition.
A Book
and a few of its attributes as plain text.
<!DOCTYPE html>
Blood ties / Garth Nix and Sean Williams.
Author:
Nix,
Garth.
Publication Info:
New York, NY : Scholastic Inc.,
2014.
A Person
can have attributes other than just familyName
and givenName
<!DOCTYPE html>
Blood ties /
Garth Nix
and Sean Williams.
Author:
Nix,
Garth.
Publication Info:
New York, NY : Scholastic Inc.,
2014.
Edition:
First edition.
Avoiding redundant redundancies!
<!DOCTYPE html>
<div vocab="http://schema.org/" prefix="foaf: http://xmlns.com/foaf/0.1/">
Blood ties /
Garth Nix
and Sean Williams.
Author:
Nix,
Garth.
Publication Info:
New York, NY
: Scholastic Inc.,
2014.
Edition:
First edition.
</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