Create a red color alert box that indicates a dangerous action in Bootstrap

Use the .alert-danger class in Bootstrap to create a red color alert box indicating dangerous action.

You can try to run the following code to implement .alert-danger class −


Live Demo

<!DOCTYPE html>
   <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>
      <div class = "container">
         <div class = "alert alert-danger">
            <p>Add dangerous action here...</p>