Challenge - 5 Problems
Breadcrumb Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual output of this Bootstrap breadcrumb code?
Look at the following Bootstrap breadcrumb HTML. What will you see rendered in the browser?
Bootsrap
<nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item"><a href="#">Library</a></li> <li class="breadcrumb-item active" aria-current="page">Data</li> </ol> </nav>
Attempts:
2 left
💡 Hint
Remember that the last breadcrumb item is usually marked active and is not a link.
✗ Incorrect
Bootstrap breadcrumb uses an ordered list with the last item marked active and not a link. This shows a horizontal breadcrumb trail with the last item as plain text.
❓ accessibility
intermediate1:30remaining
Which attribute ensures the breadcrumb is accessible to screen readers?
In Bootstrap breadcrumb navigation, which attribute is essential for accessibility to describe the breadcrumb region?
Attempts:
2 left
💡 Hint
Think about how screen readers identify the purpose of a navigation region.
✗ Incorrect
The aria-label="breadcrumb" on the
📝 Syntax
advanced2:00remaining
What error occurs with this breadcrumb code?
What error or problem will this Bootstrap breadcrumb code cause when rendered?
Bootsrap
<nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Library</li> </ol> </nav>
Attempts:
2 left
💡 Hint
Check if all tags are properly closed in the list.
✗ Incorrect
The first tag is not closed, which makes the HTML invalid and can cause rendering issues.
❓ layout
advanced2:00remaining
How to make breadcrumb items wrap on small screens?
By default, Bootstrap breadcrumb items stay on one line. Which CSS approach makes breadcrumb items wrap nicely on small screens?
Attempts:
2 left
💡 Hint
Bootstrap breadcrumb uses flexbox by default.
✗ Incorrect
The breadcrumb uses flexbox. Adding flex-wrap: wrap allows items to wrap to next line on small screens.
🧠 Conceptual
expert1:30remaining
What is the purpose of aria-current="page" in breadcrumb?
Why do we add aria-current="page" to the last breadcrumb item in Bootstrap?
Attempts:
2 left
💡 Hint
Think about how screen readers know which page is active.
✗ Incorrect
aria-current="page" tells screen readers the item is the current page, improving navigation clarity.