Complete the code to create a basic Bootstrap nav tab container.
<ul class="nav [1]" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Home</button> </li> </ul>
The class nav-tabs creates the tab style navigation in Bootstrap.
Complete the code to create a Bootstrap nav pill link that is active.
<ul class="nav nav-pills"> <li class="nav-item"> <a class="nav-link [1]" href="#">Active Pill</a> </li> </ul>
The class active marks the pill as selected or active.
Fix the error in the tab content pane to show the active tab correctly.
<div class="tab-content"> <div class="tab-pane [1]" id="profile" role="tabpanel" aria-labelledby="profile-tab">Profile content here.</div> </div>
The classes active show make the tab pane visible and active.
Fill both blanks to create a nav tab link that toggles the correct tab pane.
<ul class="nav nav-tabs" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="[1]-tab" data-bs-toggle="tab" data-bs-target="#[2]" type="button" role="tab" aria-controls="[2]" aria-selected="true">[2]</button> </li> </ul>
The button's id and data-bs-target must match the tab pane's id. Using 'home' for both ensures correct linking.
Fill all three blanks to create a nav pill with a disabled link and correct aria attributes.
<ul class="nav nav-pills"> <li class="nav-item"> <a class="nav-link [1]" href="#" tabindex="[2]" aria-disabled="[3]">Disabled Pill</a> </li> </ul>
To disable a nav link, add the 'disabled' class, set tabindex to '-1' to remove it from keyboard focus, and aria-disabled to 'true' for accessibility.