Nearby lessons

16 of 39

πŸ“„ BS5 Pagination

πŸ“Œ What Is Bootstrap 5 Pagination?

Pagination lets users move between pages (e.g. search results). Use .pagination on a <ul>, .page-item on each <li>, and .page-link on the <a> inside. Wrap in <nav> with aria-label for accessibility.

πŸ“„ Basic Pagination (.pagination, .page-item, .page-link)

.pagination – wrapper on the list. .page-item – each page or arrow. .page-link – the clickable link inside. Use .active on the current page’s .page-item. Use .disabled on the .page-item for Previous/Next when not available.

πŸ…±οΈ

bootstrap Designer

Live Component Playground

html Source
Loading...
Built with Bootstrap 5.3 β€’ Enterprise Ready

β¬…οΈβž‘οΈ Disabled and Active States (.active, .disabled)

.active – highlights the current page. .disabled – grays out and prevents click (e.g. β€œPrevious” on page 1). Add tabindex="-1" to disabled links for keyboard users.

πŸ…±οΈ

bootstrap Designer

Live Component Playground

html Source
Loading...
Built with Bootstrap 5.3 β€’ Enterprise Ready

πŸ“ Pagination Sizes (.pagination-lg, .pagination-sm)

.pagination-lg – larger pagination. .pagination-sm – smaller. Add to the <ul class="pagination">.

πŸ…±οΈ

bootstrap Designer

Live Component Playground

html Source
Loading...
Built with Bootstrap 5.3 β€’ Enterprise Ready

βœ… Pagination Best Practices

  • Use <nav> and aria-label so screen readers know it’s page navigation.
  • Disable Previous/Next on first/last page with .disabled and tabindex="-1".
  • Mark current page with .active on the corresponding .page-item.

🧠 Test Your Knowledge

3 Questions

Progress: 0 / 3
Keep Going!BS5 List Groups