Bootstrap success Contextual class

BootstrapWeb DevelopmentCSS Framework

The Bootstrap success contextual class indicates a successful or positive action.

You can try to run the following code to implement the .success class −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Table</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <table class = "table">
         <thead>
            <tr>
               <th>Subject</th>
               <th>Marks</th>
               <th>Student</th>
            </tr>
          </thead>
          <tbody>
             <tr class = "success">
                <td>Maths</td>
                <td>90</td>
                <td>Amit</td>
             </tr>
             <tr class = "active">
                <td>Science</td>
                <td>80</td>
                <td>Aman</td>
             </tr>
             <tr>
                <td>English</td>
                <td>85</td>
                <td>Rahul</td>
             </tr>
          </tbody>
      </table>
   </body>
</html>
raja
Published on 20-Jun-2018 08:20:50

Advertisements