Alert Heading
This alert example has an alert heading, an alert link, and is dismissible! Example alert link!
.alert.alert-primary.alert-dismissible.fade.show(role='alert')
h5.alert-heading Alert Heading
| This alert example has an alert heading, an alert link, and is dismissible!
a.alert-link(href='#!') Example alert link!
button.btn-close(type='button', data-bs-dismiss='alert', aria-label='Close')
By default, Bootstrap styles the content within alerts. Use
.alert-heading
to style a heading within an alert,
.alert-link
to style a link within an alert, or you can use the dismissible option by using the
data-bs-dismiss='alert'
data attribute.
Learn more about dismissing Bootstrap alerts in the Bootstrap alerts component documentation .