Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Form Inline Checkboxes and Radios Example
Keywords : form, bootstrap, inputs, bootstrap form inputs, bootstrap input controls, bootstrap form input examples, bootstrap form controls, bootstrap form inline checkboxes, bootstrap form inline radios
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Form Inline Checkboxes and Radios Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container-fluid bcontent"> <h2>Bootstrap Form Inline Checkboxes and Radios</h2> <hr /> <form> <div class="form-group row"> <label for="password" class="col-form-label col-sm-2 pt-0">Gender</label> <div class="col-sm-10"> <div class="form-check form-check-inline"> <input type="radio" class="form-check-input" name="genderadios" id="rdbmale" value="male" checked> <label class="form-check-label" for="gridRadios1">Male</label> </div> <div class="form-check form-check-inline"> <input type="radio" class="form-check-input" name="genderadios" id="rdbfemale" value="female"> <label class="form-check-label" for="gridRadios2">Female</label> </div> </div> </div> <div class="form-group row"> <label for="password" class="col-form-label col-sm-2 pt-0">Languages</label> <div class="col-sm-10"> <div class="form-check form-check-inline"> <input type="checkbox" class="form-check-input" name="langchk" id="chkeng" value="english"> <label class="form-check-label" for="english">English</label> </div> <div class="form-check form-check-inline"> <input type="checkbox" class="form-check-input" name="langchk" id="chkhnd" value="telugu"> <label class="form-check-label" for="telugu">Telugu</label> </div> </div> </div> </form> </div> </body> </html>
Click Here to See Result
Result
Previous
Next