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 ?
- Spacing in Bootstrap with Examples
- Popovers in bootstrap with examples
- Borders in bootstrap with examples
- Containers in Bootstrap with examples
- Bootstrap Buttons with Examples
- Bootstrap | Sizing an element with Examples
- Visibility of elements in bootstrap with Examples
- Input Groups in Bootstrap with Examples
- Flexbox utilities in bootstrap with examples
- Media Objects in Bootstrap with Examples
- Display Property in Bootstrap with Examples
- Vertical alignment in Bootstrap 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.