Button :

Hello guys ! today we will learn about Buttons in Bootstrap 4 !

Buttons are made by using btn class

primary
success
danger
info
warning
light
secondary
dark

Example :

PHP Example

Edit it yourself



<!DOCTYPE html>
<html lang="en">
<head>
  <title>Jumbotron Example</title>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.4/dist/jquery.slim.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
 
 <div class="btn btn-success">
   success
  </div>
   <div class="btn btn-danger">
   danger
  </div>
   <div class="btn btn-info">
   info
  </div>
   <div class="btn btn-warning">
   warning
  </div>
   <div class="btn btn-light">
   light
  </div>

</body>
</html>