@creola.ebert
To implement schema.org markup for a breadcrumb, you can follow these steps:
Here's an example implementation using JSON-LD:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<nav> <ol itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="/"><span itemprop="name">Home</span></a> <meta itemprop="position" content="1"> </li> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="/category"><span itemprop="name">Category</span></a> <meta itemprop="position" content="2"> </li> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="/category/subcategory"><span itemprop="name">Subcategory</span></a> <meta itemprop="position" content="3"> </li> </ol> </nav> |
Explanation:
Remember to update the href attribute and breadcrumb text accordingly for each item in your breadcrumb trail.