Articles → BOOTSTRAP → Button Groups in Bootstrap

Button Groups in Bootstrap






Purpose





Example


<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta charset="utf-8" />
      <title></title>
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
   </head>
   <body>
      <div class="btn-group">
         <button class="btn btn-primary">Button 1</button>
         <button class="btn btn-primary">Button 2</button>
         <button class="btn btn-primary">Button 3</button>
      </div>
   </body>
</html>



Output


Picture showing the output of button groups in bootstrap

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, September 28, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250