If your website has many pages, you might want to include pagination for easier navigation.
To make a basic pagination, use the .pagination
class on a <ul>
element, add .page-item
to each <li>
and apply .page-link
to the links inside
The .active
class is used to "highlight" the current page:
Use the .disabled
class to make links appear inactive and unclickable.
Pagination can be adjusted to appear larger or smaller using size classes.
Use the .pagination-lg
class for large pagination blocks, or .pagination-sm
for small ones.