HTML CSS examples for Bootstrap:Form Control
Placement of Checkboxes and Radios
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Example of Bootstrap 3 Stacked Checkboxes and Radios</title> <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/1.11.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> </head><!--from w ww. j av a 2 s . c o m--> <body> <div> <form> <h4>Choose your favorite sports</h4> <div class="checkbox"> <label><input type="checkbox" name="sports"> HTML</label> </div> <div class="checkbox"> <label><input type="checkbox" name="sports"> CSS</label> </div> <div class="checkbox"> <label><input type="checkbox" name="sports"> Javascript</label> </div> <hr> <h4>Choose your gender</h4> <div class="radio"> <label><input type="radio" name="gender"> Male</label> </div> <div class="radio"> <label><input type="radio" name="gender"> Female</label> </div> </form> </div> </body> </html>