Primary action in a set of Bootstrap buttons

The .btn-primary class provides extra visual weight and identifies the primary action in a set of buttons. To set primary action in Bootstrap button, you can try to run the following code −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <meta name = "viewport" content = "width=device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>
      <button type = "button" class = "btn btn-primary">Primary Button</button>