Breadcrumbs

A breadcrumb provides a trail of links indicating the user’s current location within a website’s hierarchy. It typically appears near the top of a web page or at the top of a content section, serving as a secondary navigation aid.

When to use

Use breadcrumbs on your website if you have a hierarchical structure of pages, such as categories and subcategories.

Anatomy

Breadcrumbs Anatomy

1. Breadcrumb

  • Includes link to home page and every subsequent tier up to 4 that leads to current
  • Do not include current page in the breadcrumbs.

2. Separator

  • Static “/“ used to separate breadcrumb items

Examples

<nav class="ucla-breadcrumb">
  <ul class="ucla-breadcrumb__list">
    <li class="ucla-breadcrumb__list-item">
      <a class="ucla-breadcrumb__link" href="#">Home</a>
    </li>
    <li class="ucla-breadcrumb__list-item">
      <a class="ucla-breadcrumb__link" href="#">Level 1</a>
    </li>
    <li class="ucla-breadcrumb__list-item">
      <a class="ucla-breadcrumb__link" href="#">Level 2</a>
    </li>
  </ul>
</nav>