Skip to content

Instantly share code, notes, and snippets.

@michaelschofield
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelschofield/9476036 to your computer and use it in GitHub Desktop.
Save michaelschofield/9476036 to your computer and use it in GitHub Desktop.
Trying to markup the most semantic directory ever. Inspired by cool semantic things being done by Jason Clark and Scott Young.
# Have to get creative with Schema though. I'm actively finagling. DTs cannot contain any block level elements, but DDs can.
<dl vocab="http://schema.org/" typeof="Person">
<dt property="name">Sandra Fiegi</dt>
<dd>
<img property="image" src="example.jpg" alt="A photo of Sandra Fiegi">
</dd>
<dt>Title</dt>
<dd property="jobTitle">Administrative Associate</dd>
<dt>Department</dt>
<dd property="workLocation">Administration</dd>
<dd property="affiliation worksFor">Montana State University</dd>
<dt>Phone</dt>
<dd property="telephone">406-994-6537</dd>
<dt>Email</dt>
<dd property="email">sandra.fiegi@montana.edu</dd>
<dt>Address</dt>
<dd property="address">Room 124</dd>
</dl>
@michaelschofield
Copy link
Author

This looks right to me, but I'm not all that good with schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment