When you use an ul
element to format your breadcrumb (aiming for better Google search results), how do you define the RDFa markup? The reason I am asking is that the li
elements are siblings from each other, and not children. I am doing something like:
<div class="dv_breadcrumbs">
<ul xmlns:v="http://rdf.data-vocabulary.org/#">
<li typeof="v:Breadcrumb"><a title="Level1" href="/level1" rel="v:url"><span property="v:title">Level1</span></a></li>
<li typeof="v:Breadcrumb"><a title="Level2" href="/level2" rel="v:url"><span property="v:title">Level2</span></a></li>
<li typeof="v:Breadcrumb"><a title="Level3" href="/level3" rel="v:url"><span property="v:title">Level3</span></a></li>
<li typeof="v:Breadcrumb"><a title="lever4" href="/level4" rel="v:url"><span property="v:title">Level4</span></a></li>
<li typeof="v:Breadcrumb"><a class="currentLevel" title="Current Level" rel="v:url" property="v:title">Current Level</a></li>
</ul>
</div>
Is it correct? Would the search engines understand that the breadcrumb items are in sequence inside the ul
element?
Breadcrumbs aren't necessary (or useful) for sites with flat hierarchies that are only 1 or 2 levels deep, or sites that are linear in structure.
A BreadcrumbList is an ItemList consisting of a chain of linked Web pages, typically described using at least their URL and their name, and typically ending with the current page.
Apple. Apple is a peculiar breadcrumb example. While most of the platforms on this list have their breadcrumbs near the primary links, Apple goes the opposite way. Their breadcrumbs are all the way at the bottom, right above the footer.
What Are Breadcrumbs in SEO? Breadcrumbs are website links that allow users to track where they are on a website and how far they are from the homepage. You'll usually find them at the top of a website or just under the navigation bar.
Yes. You can check it using Google Testing Tool. Your code will result in following:
Although some clarifications needed.
a class="currentLevel" title="Current Level" href="/my_page.html" rel="v:url" property="v:title"
(sorry for citation - for some reason SO doesn't allow me to put visible code here).
And you'll get smth like:
The breadcrumb name is identified using the title property, prefixed with v:, like this:
<span property="v:title">.
The rel attribute indicates that the link is that breadcrumb's URL. The property attribute should be specified in the a element rather than nested inside it, like this:
<a href="books.html" rel="v:url" property="v:title">Books</a>.
So it is better to rewrite your code like this:
<div class="dv_breadcrumbs">
<ul xmlns:v="http://rdf.data-vocabulary.org/#">
<li typeof="v:Breadcrumb"><a title="Level1" href="/level1" rel="v:url" property="v:title">Level1</a></li>
<li typeof="v:Breadcrumb"><a title="Level2" href="/level2" rel="v:url"property="v:title">Level2</a></li>
<li typeof="v:Breadcrumb"><a title="Level3" href="/level3" rel="v:url" property="v:title">Level3</a></li>
<li typeof="v:Breadcrumb"><a title="lever4" href="/level4" rel="v:url" property="v:title">Level4</a></li>
<li typeof="v:Breadcrumb"><a class="currentLevel" title="Current Level" href="/my_page.html" rel="v:url" property="v:title">Current Level</a></li>
</ul>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With