Tables with Alternate Background - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Table

Description

Tables with Alternate Background

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
 <head> 
  <meta charset="utf-8"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <title>Example of Bootstrap 3 Tables with Alternate Background</title> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

 </head> <!--from w ww  .ja v a  2  s  .co m-->
 <body> 
  <div> 
   <table class="table table-striped"> 
    <thead> 
     <tr> 
      <th>Row</th> 
      <th>First Name</th> 
      <th>Last Name</th> 
      <th>Email</th> 
     </tr> 
    </thead> 
    <tbody> 
     <tr> 
      <td>1</td> 
      <td>A</td> 
      <td>B</td> 
      <td>book2s .com</td> 
     </tr> 
     <tr> 
      <td>2</td> 
      <td>Peter</td> 
      <td>Parker</td> 
      <td>bo ok2s .com</td>
     </tr> 
     <tr> 
      <td>3</td> 
      <td>A</td> 
      <td>Rambo</td> 
      <td>b o  ok2s .com</td>
     </tr> 
    </tbody> 
   </table> 
  </div>   
 </body>
</html>

Related Tutorials