mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-05 17:24:20 +01:00
17 lines
424 B
Markdown
17 lines
424 B
Markdown
---
|
|
layout: docs
|
|
title: Close icon
|
|
description: Use a generic close icon for dismissing content like modals and alerts.
|
|
group: utilities
|
|
toc: true
|
|
---
|
|
|
|
**Be sure to include text for screen readers**, as we've done with `aria-label`.
|
|
|
|
{% capture example %}
|
|
<button type="button" class="close" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
{% endcapture %}
|
|
{% include example.html content=example %}
|