Complete the code to create a breadcrumb container using Bootstrap.
<nav aria-label="breadcrumb"> <ol class="breadcrumb[1]"> </ol> </nav>
- element.
The breadcrumb class is applied directly to the <ol> element without any suffix. So the correct class is just breadcrumb.
Complete the code to add a breadcrumb item that is a link.
<li class="breadcrumb-item"><a href="[1]">Home</a></li>
#home which do not navigate to the homepage.The root or home page is usually linked with / as the href to represent the site root.
Fix the error in the breadcrumb item that marks the current page.
<li class="breadcrumb-item active" aria-current="[1]">Library</li>
The correct value for aria-current to indicate the current page in a breadcrumb is page.
Fill both blanks to create a breadcrumb with two items: a link and the current page.
<nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="[1]">Home</a></li> <li class="breadcrumb-item active" aria-current="[2]">Library</li> </ol> </nav>
The first breadcrumb item links to the root path /. The active breadcrumb item uses aria-current="page" to indicate the current page.
Fill all three blanks to create a breadcrumb with three items: Home link, Library link, and current page.
<nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="[1]">Home</a></li> <li class="breadcrumb-item"><a href="[2]">Library</a></li> <li class="breadcrumb-item active" aria-current="[3]">Data</li> </ol> </nav>
The Home link points to /, the Library link points to /library, and the current page uses aria-current="page".