Complete the code to create a basic Bootstrap pagination container.
<nav aria-label="Page navigation example"> <ul class="[1]"> </ul> </nav>
- element.
The pagination class creates the Bootstrap pagination container styling.
Complete the code to add a pagination item with a link labeled '1'.
<li class="page-item"> <a class="page-link" href="#">[1]</a> </li>
The link text inside the pagination item should be the page number, here '1'.
Fix the error in the pagination item to mark it as active.
<li class="page-item [1]"> <a class="page-link" href="#">2</a> </li>
The active class highlights the current page in Bootstrap pagination.
Fill both blanks to create a disabled previous button and an active page 3 button.
<li class="page-item [1]"> <a class="page-link" href="#" tabindex="-1" aria-disabled="true">Previous</a> </li> <li class="page-item [2]"> <a class="page-link" href="#">3</a> </li>
The 'Previous' button is disabled using the disabled class, and page 3 is marked active with the active class.
Fill all three blanks to create a pagination with first page active, a disabled previous button, and a next button.
<nav aria-label="Page navigation"> <ul class="[1]"> <li class="page-item [2]"> <a class="page-link" href="#">1</a> </li> <li class="page-item [3]"> <a class="page-link" href="#" tabindex="-1" aria-disabled="true">Previous</a> </li> <li class="page-item"> <a class="page-link" href="#">Next</a> </li> </ul> </nav>
<ul>.The pagination class is for the <ul>. The first page is active with active. The previous button is disabled with disabled.