What are Bootstrap alerts and how do you close them?

<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Warning!</strong> Check the fields.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
Live preview

See Alerts.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.