Container for checkboxes in Bootstrapn

Add checkbox to a web page with Bootstrap, using the .checkbox class in Bootstrap

You can try to run the following code to set container for checkboxes −


Live Demo

<!DOCTYPE html>
      <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>
      <div class = "container">
         <h2>Programming Survey</h2>
         <p>Which programming languages do you like?</p>
            <div class = "checkbox">
               <label><input type = "checkbox" value = " ">Java</label>
            <div class = "checkbox">
               <label><input type = "checkbox" value="">C++</label>
            <div class = "checkbox">
               <label><input type = "checkbox" value="">C</label>