Skip to content

Instantly share code, notes, and snippets.

@MaikelVeen
Created January 20, 2021 22:32
Show Gist options
  • Save MaikelVeen/fc6109c601558bd320b0969316b361ef to your computer and use it in GitHub Desktop.
Save MaikelVeen/fc6109c601558bd320b0969316b361ef to your computer and use it in GitHub Desktop.
Microdata to support breadcrumb
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="https://example.com/books">
<span itemprop="name">Books</span></a>
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemscope itemtype="https://schema.org/WebPage"
itemprop="item" itemid="https://example.com/books/sciencefiction"
href="https://example.com/books/sciencefiction">
<span itemprop="name">Science Fiction</span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<span itemprop="name">Award winners</span>
<meta itemprop="position" content="3" />
</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment