HTML CSS examples for Bootstrap Class List:table
table - Adds basic styling to a table (padding, bottom borders, etc)
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script> </head><!-- ww w . ja v a2s . co m--> <body> <div class="container"> <h2>Basic Table</h2> <p>The .table class adds basic styling (light padding and horizontal dividers) to a table:</p> <table class="table"> <thead> <tr> <th>Firstname</th> <th>Lastname</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>H</td> <td>I</td> </tr> <tr> <td>Mary</td> <td>K</td> <td>L</td> </tr> <tr> <td>July</td> <td>java2s.com</td> <td>b o o k 2 s.com</td> </tr> </tbody> </table> </div> </body> </html>