Alerts provide contextual feedback messages for typical user actions. For proper styling, use one of the eight required contextual classes. Alerts can also contain additional HTML elements like headings, paragraphs and dividers.
<div class="alert alert-primary" role="alert">
A simple primary alert!
1. Link Color
Use the .alert-link utility class to quickly provide matching colored links within any alert. For example,
<div class="alert alert-success" role="alert">
A simple success alert with <a href="#" class="alert-link">an example link</a>.
2. Dismissing Alerts
To animate alerts when dismissing them, you can add the .fade and .show classes.
<div class="alert alert-warning alert-dismissible fade show" role="alert">
This is a dismissible alert.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">