Alerts :

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

This is alert-success ...
This is alert-danger ...
This is alert-warning ...
This is alert-info...
This is alert-light ...

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="alert alert-success">
  This is alert-success ...
  </div>
   <div class="alert alert-danger">
  This is alert-danger ...
  </div>
   <div class="alert alert-warning">
  This is alert-warning ...
  </div>
   <div class="alert alert-info">
  This is alert-info...
  </div>
   <div class="alert alert-light">
  This is alert-light ...
  </div>

</body>
</html>