This site is no longer maintained

This is the documentation for version 0 of the design system and will no longer be updated. Please see the new Design System site on nice.org.uk for the most up-to-date documentation.

Alpha NICE Design System is in development. This means it is not feature complete and there may be issues. Find any? Please, let us know!

Why?

It helps identify where the user is, and the navigation they may have taken to get to the current page.

Usage

  • Use a nav element
  • use an aria-label attribute to describe the breadcrumbs
  • use .visually-hidden to only show the ‘you are here’ label to screen readers.
  • use schema.org microdata for BreadcrumbList and ListItem.

Variants

There’s only 1 variant of breadcrumbs:

Example

Source


<nav aria-label="Breadcrumbs" role="navigation">
    <p class="visually-hidden" id="breadcrumb-label">
        You are here:
    </p>
    <ol class="breadcrumbs" aria-labelledby="breadcrumb-label" itemscope itemtype="http://schema.org/BreadcrumbList">
        <li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
            <a href="https://www.nice.org.uk/" itemprop="item">
                <span itemprop="name">Home</span>
            </a>
            <meta itemprop="position" content="1">
        </li>
        <li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
            <a href="https://www.nice.org.uk/guidance" itemprop="item">
                <span itemprop="name">NICE Guidance</span>
            </a>
            <meta itemprop="position" content="2">
        </li>
        <li class="breadcrumbs__crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
            <span itemprop="name">
                Population groups
            </span>
            <meta itemprop="position" content="3">
        </li>
    </ol>
</nav>

Edit on GitHub