---
title: Alerts
summary: Alert messages are used to inform users of the status of their action and help them solve any problems that might have occurred. Good design of alert modals is very important for the overall user experience of a website or app.
bootstrapLink: components/alerts/
description: Alert messages for user notifications.
---
## Default markup
Depending on the information you need to convey, you can use one of the following types of alert messages - **success**, **info**, **warning** or **danger**. Using the right type of alert modal will help draw users' attention to the message and prompt them to take action.
Combine `alert` class with one of the following: `alert-success`, `alert-info`, `alert-warning`, `alert-danger` to get the alert that you need.
Alert classes affect the color of all the text inside an alert. Use another class, e.g. `text-secondary` to change the color of the alert's content.
```html example vertical background="surface" columns={2} centered separated height="420px"
Wow! Everything worked!
Your account has been saved!
Did you know?
Here is something that you might like to know.
Uh oh, something went wrong
Sorry! There was a problem with your request.
I'm so sorry…
Your account has been deleted and can't be restored.
```
## Alert links
Add a link to your alert message to redirect users to the details they need to complete or additional information they should read. Use `alert-link` class to style the link and match the text color.
```html example vertical background="surface" columns={2} centered height="120px"
```
## Dismissible alerts
Add the `x` close button to make an alert modal dismissible. Thanks to that, your alert modal will disappear only once the user closes it.
```html
```
```html example vertical background="surface" columns={2} centered separated height="420px"
Wow! Everything worked!
Your account has been saved!
Did you know?
Here is something that you might like to know.
Uh oh, something went wrong
Sorry! There was a problem with your request.
I'm so sorry…
Your account has been deleted and can't be restored.
```
## Alerts with icons
Add an icon to your alert modal to make it more user-friendly and help users easily identify the message.
Use `alert-icon` class for `