Bootstrap danger Contextual class



The Bootstrap danger contextual class indicates a danger action.

You can try to run the following code to implement the .danger 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>Programming</td>                <td>90</td>                <td>Amit</td>             </tr>             <tr class = "active">                 <td>Web Dev</td>                 <td>92</td>                 <td>Yuvraj</td>             </tr>             <tr class = "warning">                <td>Science</td>                <td>95</td>                <td>Sachin</td>             </tr>             <tr class = "danger">                <td>Economics</td>                <td>80</td>                <td>Tony</td>             </tr>          </tbody>       </table>    </body> </html>
Updated on: 2020-06-12T17:55:54+05:30

231 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements