HTML CSS examples for Bootstrap Class List:close
.close - Add a close icon
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head><!-- w ww.j a v a2 s . co m--> <body> <div class="container"> <h2>Example</h2> <p>The .close class indicates a close icon.</p> <div style="padding:50px;width:400px;background-color:#f1f1f1;"> <span>The close icon floats to the right:</span> <button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> </div> </div> </body> </html>