Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created July 28, 2012 16:16
Show Gist options
  • Save douglasmiranda/3193883 to your computer and use it in GitHub Desktop.
Save douglasmiranda/3193883 to your computer and use it in GitHub Desktop.
Creating a semantic breadcrumb using HTML5 microdata
<!-- http://coderwall.com/p/p0nvjw?i=5&p=1&q= -->
<ol class="breadcrumb">
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://www.example.com/" itemprop="url">
<span itemprop="title">Example.com</span>
</a>
</li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://www.example.com/news" itemprop="url">
<span itemprop="title">News</span>
</a>
</li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://www.example.com/news/news-story.1" itemprop="url">
<span itemprop="title">News Story 1</span>
</a>
</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment