- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<!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>
- Related Articles
- Bootstrap warning Contextual class
- Bootstrap active Contextual class
- Bootstrap success Contextual class
- Bootstrap alert-danger class
- Bootstrap .btn-danger class
- Bootstrap 4 .border-danger class
- Usage of Bootstrap class panel-danger
- Bootstrap 4 Button .btn-outline-danger class
- Style Bootstrap 4 cards with bg-danger class
- Bootstrap Contextual classes
- Contextual button for informational alert messages with Bootstrap
- Indicate danger with red outlined Bootstrap 4 Button
- Create a red button that indicates danger in Bootstrap
- Set orange border on an element in Bootstrap to indicate danger
- Add a red border to an element in Bootstrap to indicate danger

Advertisements