Prev Demo
Bootstrap
>
Inline Form
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap navbar</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <h2>Inline forms</h2> <form class="form-inline"> <div class="form-group"> <label for="username">Username:</label> <input type="email" class="form-control" id="username" placeholder="username"> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="password" class="form-control" id="pwd" placeholder="Password"> </div> <div class="checkbox"> <label><input type="checkbox">Remember</label> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </body> </html>
Note: We DO NOT save your trial code in our database.
Output