![]() |
VOOZH | about |
Bootstrap 5 Table Anatomy contains three parts of table-head, table-foot & captions, you may think about where is the body as I did in tables but there are no classes for that. We can decorate the body part by using different classes like background color classes or text color classes.
Bootstrap 5 Table Anatomy:
Below example illustrates the Bootstrap 5 Table Anatomy:
Example 1: In this example, we will have a table that will have a black background header with a table footer and a caption.
Output:
Example 2: In this example, we will have a table that will have a light background header with a table footer and a caption.
Output:
Reference: https://getbootstrap.com/docs/5.0/content/tables/#anatomy