Caret Bootstrap class


Use carets to indicate dropdown functionality and direction. To get this functionality use the class caret with a <span> element.

You can try to run the following code to implement caret Bootstrap class

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>Caret Example<span class = "caret"></span></p>
   </body>
</html>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 12-Jun-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements