VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-tables/

⇱ Bootstrap 5 Tables - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Tables

Last Updated : 23 Jul, 2025

Bootstrap 5 provides a series of classes that can be used to apply various styling to the tables such as changing the heading appearance, making the rows striped, adding or removing borders, making rows hoverable, etc. Bootstrap also provides classes for making tables responsive.

Bootstrap 5 Tables:

TermDescription
VariantsUsed to create different colored tables. Contextual classes create variant tables.
Accented tablesThree types: striped, hoverable, and active. Used in different situations for visual effects.
How they workTechniques used to apply effects to all table variants.
Table bordersClasses for setting or unsetting table borders. Customizable with Bootstrap 5.
Small tablesCreate smaller versions of normal tables.
Vertical alignmentSets alignment of table cells' content.
NestingAllows placing a table inside another table. Prevents parent styles from affecting the child.
How nesting worksExplanation of nesting functionality.
AnatomyTable head, table foot, and captions.
Responsive tablesCreates tables that scroll horizontally for responsiveness.
SassInvolves Sass map and spacing utilities declared in Utility API.

The below examples illustrate the Bootstrap 5 Tables:

Example 1: In this example, we will create a small table.

Output:

👁 table
Bootstrap 5 Tables Example Output

Example 2: In this example, we will see the use of whole Table anatomy.

Output:

👁 table2
Bootstrap 5 Tables Example Output


Comment
Article Tags:

Explore