Alerts
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Examples
Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the eight required contextual classes (e.g., .alert-success
). For inline dismissal, use the alerts jQuery plugin.
Conveying meaning to assistive technologies
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only
class.
Solid background colors
Information Enable value-added convergence
Success Visualize vertical interfaces
Alert Monetize B2B portals
Error Streamline customized models
Unimportant Architect ubiquitous deliverables
Left bordered
Add icons or any other custom elements.
Information Enable value-added convergence
Success Visualize vertical interfaces
Alert Monetize B2B portals
Error Streamline customized models
Bordered style
Replace the default modifier classes with the .border-*
ones to remove all background and colors on any alert.
Information Enable value-added convergence
Success Visualize vertical interfaces
Alert Monetize B2B portals
Error Streamline customized models
Additional content
Alerts can also contain additional HTML elements like headings, paragraphs and checkboxes.
This alert needs your attention, but it's not super important.
Call to actionJavaScript behavior
For more information, see the official Bootstrap documentation.