- 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
Show dangerous action on a table row with Bootstrap
Use the .danger class in Bootstrap to show dangerous action for a table row
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</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> <div class = "container"> <h2>Rank of Cricketers</h2> <p>The following are the rank of cricketers:</p> <table class = "table"> <thead> <tr> <th>Cricketer</th> <th>Rank</th> </tr> </thead> <tbody> <tr> <td>Virat</td> <td>1</td> </tr> <tr> <td>David</td> <td>2</td> </tr> <tr> <td>Rohit</td> <td>3</td> </tr> <tr> <td>Kenn</td> <td>4</td> </tr> <tr class = "danger"> <td>Steve</td> <td>5</td> </tr> </tbody> </table> </div> </body> </html>
- Related Articles
- Indicate a dangerous action to a particular table row or cell with Bootstrap
- Indicate a successful action to a particular table row or cell with Bootstrap
- Indicate a warning action to a particular table row or cell with Bootstrap
- Create a red color alert box that indicates a dangerous action in Bootstrap
- Add information to the table row with Bootstrap
- Apply the hover color to a particular table row or cell with Bootstrap
- Show content with Bootstrap
- Striped Table with Bootstrap
- Create Table with Bootstrap
- Filter table with Bootstrap
- Set warning action with orange outlined Bootstrap 4 Button
- Create Responsive Table with Bootstrap
- Set success action for a list item in a list group with Bootstrap
- Set warning action for a list item in a list group with Bootstrap
- Set danger action for a list item in a list group with Bootstrap

Advertisements