Learning how to make microdata for breadcrumbs of web pages, I found several methods, and I'm not sure if this is correct. Firstly, my basic HTML crackers look like this:
<div> <a href="/">Root page</a> <a href="/category">Category page</a> <a href="/category/this-page">This page</a> </div>
Now, I am structuring it like this (as I saw in the example on SchemaOrg :
<ol itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/" itemprop="item"> <span itemprop="name">Root page</span> </a> </li> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/category" itemprop="item"> <span itemprop="name">Category page</span> </a> </li> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/category/this-page" itemprop="item"> <span itemprop="name">This page</span> </a> </li> </ol>
Or I structure it, as shown below, as I saw in some Stackoverflow answers:
<div> <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="/" itemprop="url"> <span itemprop="title">Root page</span> </a> </span> <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="/category" itemprop="url"> <span itemprop="title">Category page</span> </a> </span> <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="/category/this-page" itemprop="url"> <span itemprop="title">This page</span> </a> </span> </div>
Or another method that I don't know about yet?
Coop
source share