Bootstrap Tutorial - Create Table with Emphasis Classes








The following code shows how to create Table with Emphasis Classes.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<script type="text/javascript"
  src="http://code.jquery.com/jquery.min.js"></script>
<script
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<style type="text/css">
.bs-example {<!--from ww  w .j  a va2  s  .  co  m-->
  margin: 20px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <table class="table">
      <thead>
        <tr>
          <th>Row</th>
          <th>Bill</th>
          <th>Payment Date</th>
          <th>Payment Status</th>
        </tr>
      </thead>
      <tbody>
        <tr class="active">
          <td>1</td>
          <td>Credit Card</td>
          <td>04/08/2013</td>
          <td>Call in to confirm</td>
        </tr>
        <tr class="success">
          <td>2</td>
          <td>Water</td>
          <td>01/08/2013</td>
          <td>Paid</td>
        </tr>
        <tr class="warning">
          <td>3</td>
          <td>Electricity</td>
          <td>03/08/2013</td>
          <td>Pending</td>
        </tr>
        <tr class="danger">
          <td>4</td>
          <td>Telephone</td>
          <td>06/08/2013</td>
          <td>Due</td>
        </tr>
      </tbody>
    </table>
  </div>
</body>
</html>

Click to view the demo