Bootstrap pagination is a free, built-in way to add page navigation: place page links in a list inside a <nav> landmark and apply Bootstrap’s pagination classes. The examples below target Bootstrap 5.3; use the documentation for the version installed in your project if it differs.
How do I add pagination in Bootstrap?
Use a navigation landmark containing a <ul class="pagination">. Each page control belongs in a <li class="page-item">, and a working destination uses <a class="page-link">. Replace the example URLs with real destinations for your site.
As an Amazon Associate I earn from qualifying purchases.
<nav aria-label="Search results pages">
<ul class="pagination">
<li class="page-item">
<a class="page-link" href="/search?page=1">Previous</a>
</li>
<li class="page-item">
<a class="page-link" href="/search?page=1">1</a>
</li>
<li class="page-item active">
<a class="page-link" href="/search?page=2" aria-current="page">2</a>
</li>
<li class="page-item">
<a class="page-link" href="/search?page=3">3</a>
</li>
<li class="page-item">
<a class="page-link" href="/search?page=3">Next</a>
</li>
</ul>
</nav>
The navigation label identifies its purpose to assistive technology. Choose a specific label, such as “Search results pages,” when the page has multiple navigation landmarks.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteHow should the current page be marked?
Add .active to the current page’s .page-item. When that item is an anchor, Bootstrap recommends aria-current="page" to identify it as the current page to assistive technology. If the current page should not be a link, use a <span class="page-link"> instead.
#1 Best Overall
How do I disable Previous or Next?
The .disabled class supplies disabled styling, but styling alone does not make an anchor fully unavailable. Bootstrap notes that pointer-events: none does not address keyboard navigation. For a disabled anchor, add tabindex="-1" and use custom JavaScript to disable its functionality. If the control should not be interactive at all, use a <span class="page-link"> rather than an anchor.
How can I change pagination size or alignment?
Bootstrap 5.3 documents small and large pagination variants. Add .pagination-sm or .pagination-lg to the pagination list; omit either class for the default size.
Rank #2
.pagination-smmakes the pagination smaller..pagination-lgmakes it larger.
For alignment, apply a flex utility to the list. For example, .justify-content-center centers it and .justify-content-end aligns it to the end. Choose based on the surrounding layout rather than assuming one alignment is universally best.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsWhat if I use arrows instead of Previous and Next?
If the design uses symbols in place of visible words, provide screen-reader support with ARIA attributes. An arrow alone may not convey the control’s purpose; give each control an accessible name that describes its action or destination.
Rank #3
Which Bootstrap version should I follow?
The title does not identify a Bootstrap version, so the code here follows the official Bootstrap 5.3 pagination documentation. Bootstrap 5.0 documents the same core list-and-link structure, but details and wording can differ. Confirm the version your project loads, then follow its matching documentation: Bootstrap 5.3 Pagination or Bootstrap 5.0 Pagination.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




