Close icon

Bootstrap close icon

Note: This documentation is for an older version of Bootstrap (v.4). A newer version is available for Bootstrap 5. We recommend migrating to the latest version of our product - Material Design for Bootstrap 5.
Go to docs v.5

You can use a generic close icon for dismissing content like modals and alerts. In doing so, be sure to include text for screen readers, as we’ve done with aria-label.


        
            

        <button type="button" class="close" aria-label="Close">
          <span aria-hidden="true">×</span>
        </button>