Bootstrap Tutorial - Bootstrap close button








Style a close button with Bootstrap

Use the generic close icon for dismissing content like modals and alerts.

<!DOCTYPE HTML>
<html> 
<head> 
<link href="http://java2s.com/style/bootstrap.min.css" rel="stylesheet">
</head>
<body style='margin:20px;'>
    <button type="button" class="close">&times;</button>
</body>
</html>

Click to view the demo