Login
Sign Up
Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Home
Examples
BootStrap Examples
Bootstrap Table with Contextual Colors Example
Bootstrap Table with Colors
Bootstrap Table with Contextual Colors Example
Keywords : table, bootstrap, bootstrap table, bootstrap tables example, bootstrap table contextual colors, bootstrap responsive table, bootstrap table colors example, bootstrap tables tutorial
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Table with Contextual Colors Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container bcontent"> <h2>Bootstrap Table with Contextual Colors</h2> <table class="table"> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Tel No.</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>Default</td> <td>Suresh</td> <td>9000000</td> <td>@suresh</td> </tr> <tr class="table-primary"> <td>Primary</td> <td>Rohini</td> <td>9000000</td> <td>@rohini</td> </tr> <tr class="table-secondary"> <td>Secondary</td> <td>Trishi</td> <td>8000000</td> <td>@trishi</td> </tr> <tr class="table-success"> <td>Success</td> <td>Alavala</td> <td>7000000</td> <td>@alavala</td> </tr> <tr class="table-danger"> <td>Danger</td> <td>Praveen</td> <td>6000000</td> <td>@praveen</td> </tr> <tr class="table-warning"> <td>Warning</td> <td>Sateesh</td> <td>5000000</td> <td>@sateesh</td> </tr> <tr class="table-info"> <td>Info</td> <td>Sushmitha</td> <td>4000000</td> <td>@sushmitha</td> </tr> <tr class="table-light"> <td>Light</td> <td>Sudheer</td> <td>3000000</td> <td>@sudheer</td> </tr> <tr class="table-dark"> <td>Dark</td> <td>Tulasi</td> <td>2000000</td> <td>@tulasi</td> </tr> </tbody> </table> </div> </body> </html>
Click Here to See Result
Result
PREVIOUS
Bootstrap Table Header Color Example
NEXT
Bootstrap Dark Table with Contextual Col...
×
SIGN IN
Thanks to Register with tutlane.com
We sent verification mail to your registered email address to activate your account.
Please check your mail inbox in case if it not there check it in spam / junk folder
Email Address
Password
Lost Password?
Sign In
Dont have an Account yet?
Sign Up
Full Name
Email ID
Password
Re-enter Password
Register
Already have an account?
Sign In
Enter the email you used in your Tutlane profile. We will send your details.
E-mail Address
Submit
An Email has been sent with your account information. Please check your email and login
Already have an account?
Sign In