Write BreadcrumbList structured data

Description: Write breadcrumb markup for the page https://example.com/shoes/running-shoes/ with the path Home > Shoes > Running Shoes.

Hint:

  • Use itemListElement with a ListItem for each step and the position number.

Solution

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
    { "@type": "ListItem", "position": 2, "name": "Shoes", "item": "https://example.com/shoes/" },
    { "@type": "ListItem", "position": 3, "name": "Running Shoes" }
  ]
}
</script>

How it works

  • The positions start from 1. The last item is the current page, so the item URL is optional.
  • The markup should match the breadcrumb path which users see on the page.

Read Structured Data and Internal Linking.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.