The close icon in bootstrap is a utility, that is used to dismiss any content (e.g., Alerts, Modals, Popovers). It is represented by a generic cross/close icon.
Below is a sample HTML code including a close icon for dismissing content in bootstrap:
Note: The data-dismiss attribute can be used with button tag to target the component to dismiss such as a modal or an alert.
Close icon to dismiss Alert
Close icon to dismiss Modal
- How to replace dropdown-toggle icon with another default icon in Bootstrap ?
- How to accordion scroll to top to open content in Bootstrap ?
- How to use Bootstrap to align labels with content into 4 columns ?
- Containers in Bootstrap with examples
- Spacing in Bootstrap with Examples
- Popovers in bootstrap with examples
- Bootstrap Buttons with Examples
- Borders in bootstrap with examples
- Vertical alignment in Bootstrap with Examples
- Colors and gradients in bootstrap with examples
- Media Objects in Bootstrap with Examples
- List group in bootstrap with examples
- Flexbox utilities in bootstrap with examples
- Visibility of elements in bootstrap with Examples
- BootStrap | Positioning an element with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.