How to create dismissible alerts in Bootstrap ?
Alerts are a very important component in the Bootstrap library. They are used to display any message to the users like a form being submitted, OTP is sent or incorrect input entered in the form. In other words, alerts are used to provide feedback messages to the user based on their interaction with the website.
<div class="alert alert-warning alert-dismissible" role="alert"> <strong>Alert!</strong>This is a dismissable alert <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"> </button> </div>