|
Bootstrap 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 stripped, adding or removing borders, making rows hoverable, etc. Bootstrap also provides classes for making tables responsive. Simple Table: The .table class is used to create a simple Bootstrap table. This class name is used with the <table> tag to create a table. Syntax: <table class="table"> Table Contents... <table> Example: In this example, we will see the use of context classes of tables in Bootstrap. HTML
Output: Learn about contextual classes of Tables in BootstrapBootstrap provides a number of contextual classes that can be used to color the entire row or a single cell of a table. These classes should be used with the light table and not with the dark table for a better appearance. The list of contextual classes is given below.
Syntax: <table class="table"> <tr class="table- * "> Content </tr> <table> Example: In this example, we will color the row of the table. HTML
Output: |
Reffered: https://www.geeksforgeeks.org
Bootstrap |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |