alert
-
Creating Alert Messages with Bootstrap
Creating Alert Messages with Bootstrap
Alert boxes are used quite often to stand out the information that requires immediate attention of the end users such as warning, error or confirmation messages.
With Bootstrap you can easily create elegant alert messages for various purposes by adding the contextual classes (e.g.,
.alert-success
,.alert-warning
,.alert-info
etc.) to the.alert
base class. You can also add an optional close button to dismiss any alert.Bootstrap provides total 8 different types of alerts. The following example will show you the most commonly used alerts, which are: success, error or danger, warning and info alerts.