Introduction
In this write-up, we will learn about Bootstrap 4 Tables classes. Bootstrap is an open source framework to create responsive web applications. Bootstrap 4 has brought some major updates. In this blog, we will discuss the newly added table classes.
In this blog, we will cover the following classes.
- Dark Table
- Table Head Styles
- Contextual Classes
- Condensed Tables
Dark Table class
This class adds a dark background to an HTML table.
Open Visual Studio and create a new project. Rename it as Bootstrap4 Table and add the reference of the Bootstrap 4 files into the page's head section.
Add a table and add .dark-table class.
- <table class="table table-dark"> </table>