Bootstrap Table Contextual

 

In this style, we can give different classes to different rows to give them different colours.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Table Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <table class="table"> <thead> <tr> <th>Firstname</th> <th>Lastname</th> <th>Qualification</th> </tr> </thead> <tbody> <tr class="success"> <td>John</td> <td>Morse</td> <td>MCA</td> </tr> <tr class="warning"> <td>Mark</td> <td>juke</td> <td>B.TECH</td> </tr> <tr class="info"> <td>Max</td> <td>Ponting</td> <td>PHD</td> </tr> </tbody> </table> </div> </body> </html>
Output