.caret - Creates a caret arrow icon indicating a dropdown button - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:caret

Description

.caret - Creates a caret arrow icon indicating a dropdown button

Demo Code

ResultView the demo in separate window

<!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><!--from  www  . j a  va2 s .co  m-->
<body>

<div class="container">
  <div class="btn-group">
    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Menu <span class="caret"></span></button>
    <ul class="dropdown-menu" role="menu">
      <li><a href="#">A link</a></li>
      <li><a href="#">Another link</a></li>
      <li><a href="#">Test</a></li>
    </ul>
  </div>
</div>

</body>
</html>

Related Tutorials