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 accordion scroll to top to open content in Bootstrap ?
- How to use Bootstrap to align labels with content into 4 columns ?
- Popovers in bootstrap with examples
- Borders in bootstrap with examples
- Containers in Bootstrap with examples
- Bootstrap Buttons with Examples
- Spacing in Bootstrap with Examples
- Vertical alignment in Bootstrap with Examples
- Flexbox utilities in bootstrap with examples
- Colors and gradients in bootstrap with examples
- Display Property in Bootstrap with Examples
- Visibility of elements in bootstrap with Examples
- List group in bootstrap with examples
- Input Groups in Bootstrap with Examples
- Bootstrap | figure class 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.