Coding Breadcrumbs

This page is designed to provide information on how breadcrumbs can be coded.
Problem: Many applications do not have breadcrumbs on every page.
Solution: Properly code pages to include navigational breadcrumbs for maximum accessibility and usability.
Information about Breadcrumbs
Breadcrumbs are an important consideration when coding a page. A breadcrumb trail consists of a list of links to the parent pages of the current page in hierarchical order. It helps users find their place within a website or web application.
Considerations for Coding Breadcrumbs
- Breadcrumb trail is contained within a navigation landmark region ex.
<nav>. - The landmark region is labelled via
aria-label. -
The link to the current page has
aria-currentset topage. If the element representing the current page is not a link,aria-currentis optional. - The breadcrumb anchor element does not have a title element. If the surrounding elements are properly coded, the title text would be redundant information for assistive technology users.
Breadcrumb Example (from this page)
The HTML

The CSS
Helpful Links for Breadcrumbs
WCAG 2.1 G65: Providing a breadcrumb trail
WAI-ARIA Authoring Practices 1.1 for breadcrumbs, scroll to section 3.4 Breadcrumbs.
WAI-ARIA Practices - Breadcrumb Example.
This is the code example used for coding breadcrumbs on this page.