×

Html & Html5

The World's best Software Development Study Portal

Tables in Bootstrap


In Bootstrap we can easily design our table just by implementing the class of table.


Let’s understand these class:-


The .table class adds only basic style in table .
Let’s understand this by following program






Output of this Program


bootstrapimage




So here so easily we have created our basic table .



The .bordered class adds border in the table .
Let’s understand this by following program






Output of this Program


bootstrapimage


Here by .table-bordered we get border in our table


There are many more classes also for giving design to the table. Let’s see the class name and description :-



Name Description
.table-striped Adds Zebra stripes on table rows
.table-hover Adds hover effect on table rows
.table-dark Adds black background to table
.table-primary Blue color indicating an important action
.table-success Green color indicating a successful or positive action
.table-danger Red: Indicates a dangerous or potentially negative action
.table-info Light blue: Indicates a neutral informative change or action
.table-warning Orange: Indicates a warning that might need attention
.table-active Grey: Applies the hover color to the table row or table cell
.table-secondary Grey: Indicates a slightly less important action
.table-light Light grey table or table row background
.table-dark Dark grey table or table row background







Bootstrap 4 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute