Complete the code to make the form inline using Bootstrap classes.
<form class="[1]"> <input type="text" class="form-control" placeholder="Name"> <button type="submit" class="btn btn-primary">Submit</button> </form>
Use form-inline class to make the form display inline in Bootstrap.
Complete the code to create a horizontal form group with label and input side by side.
<div class="form-group row"> <label for="email" class="col-sm-2 col-form-label">Email</label> <div class="[1]"> <input type="email" class="form-control" id="email" placeholder="Email"> </div> </div>
Use col-sm-10 to make the input take the remaining horizontal space next to the label in a horizontal form.
Fix the error in the horizontal form code by completing the missing class for the label.
<div class="form-group row"> <label for="password" class="[1]">Password</label> <div class="col-sm-10"> <input type="password" class="form-control" id="password" placeholder="Password"> </div> </div>
The label in a horizontal form needs both col-sm-2 for width and col-form-label for proper alignment.
Fill both blanks to create an inline form with a text input and a submit button aligned horizontally.
<form class="[1]"> <input type="text" class="[2]" placeholder="Username"> <button type="submit" class="btn btn-primary">Login</button> </form>
Use form-inline on the form to make it inline, and form-control on the input for proper styling.
Fill all three blanks to create a horizontal form group with label, input, and help text below the input.
<div class="form-group row"> <label for="phone" class="[1]">Phone</label> <div class="[2]"> <input type="tel" class="form-control" id="phone" placeholder="Phone number"> <small class="form-text text-muted">[3]</small> </div> </div>
The label uses col-sm-2 col-form-label for horizontal layout, the input container uses col-sm-10, and the help text provides user guidance.