Bootstrap 5.3 Alert
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap 5.3 Alert Example</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Bootstrap 5.3 Alert Example</h2>
<div class="alert alert-primary" role="alert">
This is a primary alert.
</div>
<div class="alert alert-secondary" role="alert">
This is a secondary alert.
</div>
<div class="alert alert-success" role="alert">
This is a success alert.
</div>
<div class="alert alert-danger" role="alert">
This is a danger alert.
</div>
<div class="alert alert-warning" role="alert">
This is a warning alert.
</div>
<div class="alert alert-info" role="alert">
This is an info alert.
</div>
<div class="alert alert-light" role="alert">
This is a light alert.
</div>
<div class="alert alert-dark" role="alert">
This is a dark alert.
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>
Code Output
Bootstrap 5.3 Alert Example
This is a primary alert.
This is a secondary alert.
This is a success alert.
This is a danger alert.
This is a warning alert.
This is an info alert.
This is a light alert.
This is a dark alert.
Alert
It provides a flexible and customizable alert component that can be used to display important messages or notifications to users.