Bootstrap 4 Basic Table:

Bootstrap 4 Basic Table:

Bootstrap 4 Table:

Bootstrap 4 Basic Table:

Bootstrap 4 Table .table class adds basic styling to the table. 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table">
  14.             <thead>
  15.                 <tr>
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr>
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr>
  28.                     <td>Mical</td>
  29.                     <td>Male</td>
  30.                     <td>Mical@gmail.com</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Dipa</td>
  34.                     <td>Female</td>
  35.                     <td>Dipa@gmail.com</td>
  36.                 </tr>
  37.             </tbody>
  38.         </table>
  39.     </div>
  40.     <!-- here Optional JavaScript -->
  41.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  42.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  43.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  44.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  45.   </body>
  46. </html>

Output:

 

Bootstrap 4 Striped Rows:

Bootstrap 4 Table .table-striped class adds Zebra-stripes styling to table. 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table table-striped">
  14.             <thead>
  15.                 <tr>
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr>
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr>
  28.                     <td>Mical</td>
  29.                     <td>Male</td>
  30.                     <td>Mical@gmail.com</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Dipa</td>
  34.                     <td>Female</td>
  35.                     <td>Dipa@gmail.com</td>
  36.                 </tr>
  37.             </tbody>
  38.         </table>
  39.     </div>
  40.     <!-- here Optional JavaScript -->
  41.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  42.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  43.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  44.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  45.   </body>
  46. </html>

 

Output:

 

Bootstrap 4 Border Table:

Bootstrap 4 Table .table-bordered class adds Border Table styling to table. 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table table-bordered">
  14.             <thead>
  15.                 <tr>
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr>
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr>
  28.                     <td>Mical</td>
  29.                     <td>Male</td>
  30.                     <td>Mical@gmail.com</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Dipa</td>
  34.                     <td>Female</td>
  35.                     <td>Dipa@gmail.com</td>
  36.                 </tr>
  37.             </tbody>
  38.         </table>
  39.     </div>
  40.     <!-- here Optional JavaScript -->
  41.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  42.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  43.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  44.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  45.   </body>
  46. </html>

 

Output:

 

Bootstrap 4 Hover Rows:

Bootstrap 4 Table .table-hover class adds Hover Rows styling to table. 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table table-hover">
  14.             <thead>
  15.                 <tr>
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr>
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr>
  28.                     <td>Mical</td>
  29.                     <td>Male</td>
  30.                     <td>Mical@gmail.com</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Dipa</td>
  34.                     <td>Female</td>
  35.                     <td>Dipa@gmail.com</td>
  36.                 </tr>
  37.             </tbody>
  38.         </table>
  39.     </div>
  40.     <!-- here Optional JavaScript -->
  41.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  42.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  43.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  44.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  45.   </body>
  46. </html>

 

Output:

 

Bootstrap 4 Black OR Drak Table:

Bootstrap 4 Table .table-dark class adds Black OR Drak Table styling to table. 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table table-dark">
  14.             <thead>
  15.                 <tr>
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr>
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr>
  28.                     <td>Mical</td>
  29.                     <td>Male</td>
  30.                     <td>Mical@gmail.com</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Dipa</td>
  34.                     <td>Female</td>
  35.                     <td>Dipa@gmail.com</td>
  36.                 </tr>
  37.             </tbody>
  38.         </table>
  39.     </div>
  40.     <!-- here Optional JavaScript -->
  41.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  42.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  43.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  44.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  45.   </body>
  46. </html>

 

Output:

 

Bootstrap 4 Contextual Classes Table:

Contextual Classes can be used to color style the whole table <table>, table rows <tr>,  table data <td>.

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <table class="table table-bordered">
  14.             <thead>
  15.                 <tr class="table-danger" >
  16.                     <th>This is Name</th>
  17.                     <th>This is Gender</th>
  18.                     <th>This is Email</th>
  19.                 </tr>
  20.             </thead>
  21.             <tbody>
  22.                 <tr class="table-success">
  23.                     <td>Jon</td>
  24.                     <td>Male</td>
  25.                     <td>Jon@gmail.com</td>
  26.                 </tr>
  27.                 <tr class="table-info">
  28.                     <td>Dipa</td>
  29.                     <td>Female</td>
  30.                     <td>Dipa@gmail.com</td>
  31.                 </tr>
  32.                 <tr class="table-warning">
  33.                     <td>Sopon</td>
  34.                     <td>Male</td>
  35.                     <td>Sopon@gmail.com</td>
  36.                 </tr>
  37.                 <tr class="table-active">
  38.                     <td>Mahi</td>
  39.                     <td>Female</td>
  40.                     <td>Mahi@gmail.com</td>
  41.                 </tr>
  42.                 <tr class="table-secondary">
  43.                     <td>Nusrat</td>
  44.                     <td>Female</td>
  45.                     <td>Nusrat@gmail.com</td>
  46.                 </tr>
  47.                 <tr class="table-light">
  48.                     <td>Hasib</td>
  49.                     <td>Male</td>
  50.                     <td>Hasib@gmail.com</td>
  51.                 </tr>
  52.                 <tr class="table-dark">
  53.                     <td>Mamun</td>
  54.                     <td>Male</td>
  55.                     <td>Mamun@gmail.com</td>
  56.                 </tr>
  57.             </tbody>
  58.         </table>
  59.     </div>
  60.     <!-- here Optional JavaScript -->
  61.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  62.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  63.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  64.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  65.   </body>
  66. </html>

 

Output:


 

Bootstrap 4 Contextual Classes can be used............

 

Bootstrap 4 Contextual Classes Table:

  table-dark

  Table Background Dark or Black

  table-light

  Table Background Light

  table-secondary

  Table Background slightly Grey

  table-active

  Table Background Grey hover color

  table-warning

  Table Background Orange

  table-info

  Table Background Light blue

  table-success

  Table Background Green

  table-danger

  Table Background Red

  table-primary

  Table Background Blue

 

 

Responsive Table:

If larger than the display, the scrollbar will show...

Bootstrap 4 Responsive Table, Bootstrap Responsive Table,

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.         <div class="table-responsive">
  14.             <table class="table table-bordered">
  15.                 <thead>
  16.                     <tr>
  17.                         <th>Example</th>
  18.                         <th>Example</th>
  19.                         <th>Example</th>
  20.                         <th>Example</th>
  21.                         <th>Example</th>
  22.                         <th>Example</th>
  23.                         <th>Example</th>
  24.                         <th>Example</th>
  25.                         <th>Example</th>
  26.                         <th>Example</th>
  27.                         <th>Example</th>
  28.                         <th>Example</th>
  29.                         <th>Example</th>
  30.                         <th>Example</th>
  31.                         <th>Example</th>
  32.                         <th>Example</th>
  33.                         <th>Example</th>
  34.                         <th>Example</th>
  35.                         <th>Example</th>
  36.                         <th>Example</th>
  37.                     </tr>
  38.                 </thead>
  39.                 <tbody>
  40.                     <tr>
  41.                         <td>Test</td>
  42.                         <td>Test</td>
  43.                         <td>Test</td>
  44.                         <td>Test</td>
  45.                         <td>Test</td>
  46.                         <td>Test</td>
  47.                         <td>Test</td>
  48.                         <td>Test</td>
  49.                         <td>Test</td>
  50.                         <td>Test</td>
  51.                         <td>Test</td>
  52.                         <td>Test</td>
  53.                         <td>Test</td>
  54.                         <td>Test</td>
  55.                         <td>Test</td>
  56.                         <td>Test</td>
  57.                         <td>Test</td>
  58.                         <td>Test</td>
  59.                         <td>Test</td>
  60.                         <td>Test</td>
  61.                     </tr>
  62.                 </tbody>
  63.             </table>
  64.         </div>
  65.     </div>
  66.     <!-- here Optional JavaScript -->
  67.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  68.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  69.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  70.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  71.   </body>
  72. </html>

 

Output:

 

You may also use following built-in Bootstrap classes for displaying scrollbar till a specific breakpoint.
Use .table-responsive-sm,  .table-responsive-md, .table-responsive-lg, .table-responsive-xl as needed to create responsive tables up to a particular breakpoint. 
 

 

    Class

  Screen Width

  .table-responsive-sm

  < 576 px

  .table-responsive-md

  < 768 px

  .table-responsive-lg

  < 992 px

  .table-responsive-xl

  < 1200 px

 

 

Example:

  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- here Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <!-- here Bootstrap CSS -->
  8.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  9.     <title>Bootstrap 4 Basic Table !</title>
  10.   </head>
  11.   <body>
  12.     <div class="container">
  13.       <div class="table-responsive-sm">
  14.           <table class="table">
  15.               <thead>
  16.                   ......................
  17.                   ......................
  18.               </thead>
  19.               <tbody>
  20.                   ......................
  21.                   ......................
  22.               </tbody>
  23.           </table>
  24.         </div>
  25.     </div>
  26.     <div class="container">
  27.       <div class="table-responsive-md">
  28.           <table class="table">
  29.               <thead>
  30.                   ......................
  31.                   ......................
  32.               </thead>
  33.               <tbody>
  34.                   ......................
  35.                   ......................
  36.               </tbody>
  37.           </table>
  38.         </div>
  39.     </div>
  40.     <div class="container">
  41.       <div class="table-responsive-lg">
  42.           <table class="table">
  43.               <thead>
  44.                   ......................
  45.                   ......................
  46.               </thead>
  47.               <tbody>
  48.                   ......................
  49.                   ......................
  50.               </tbody>
  51.           </table>
  52.         </div>
  53.     </div>
  54.     <div class="container">
  55.       <div class="table-responsive-xl">
  56.           <table class="table">
  57.               <thead>
  58.                   ......................
  59.                   ......................
  60.               </thead>
  61.               <tbody>
  62.                   ......................
  63.                   ......................
  64.               </tbody>
  65.           </table>
  66.         </div>
  67.     </div>
  68.     <!-- here Optional JavaScript -->
  69.     <!-- here jQuery first, then Popper.js, then Bootstrap JS -->
  70.     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  71.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  72.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  73.   </body>
  74. </html>

 

Bootstrap 4 Table, Bootstrap Table, responsive table, Bootstrap responsive table, Bootstrap 4 table responsive table. table class

 

Thank You............