← All Exercises
Mark Up an Accessible Breadcrumb Trail
basichtml
Background
Breadcrumbs help users locate themselves; a navigation landmark and aria-current make that structure available to assistive technology.
Problem
Create a breadcrumb for Docs then Guides then Forms where the trail is a labelled navigation landmark, an ordered list, and the last item is marked with aria-current=page.
Input
A three-level page hierarchy ending on the Forms guide.
Output
A labelled nav containing an ordered list with one current-page item.
Sample tests
Sample 1
Input: Screen reader lists navigation landmarks
Expected: nav aria-label=Breadcrumb is exposed separately from the primary navigation
Sample 2
Input: Screen reader reads the final crumb
Expected: the Forms link announces current page because it carries aria-current=page
Your solution
Learning objective
Build breadcrumbs with a named navigation landmark, ordered list structure, and aria-current for the active page.