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 being 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 dismissible alert <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"> </button> </div>
Example: In this example, we will add a .alert-dismissible class of Bootstrap.
Please Login to comment...