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 use Bootstrap to align labels with content into 4 columns ?
- Containers in Bootstrap with examples
- Popovers in bootstrap with examples
- Bootstrap Buttons with Examples
- Spacing in Bootstrap with Examples
- Borders in bootstrap with examples
- Bootstrap | Sizing an element with Examples
- BootStrap | Positioning an element with Examples
- Bootstrap | Float utilities with Examples
- Bootstrap | figure class with Examples
- Media Objects in Bootstrap with Examples
- Vertical alignment in Bootstrap with Examples
- Visibility of elements in bootstrap with Examples
- Colors and gradients in bootstrap with examples
- Responsive images 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.