Complete the code to create a Bootstrap checkbox input.
<div class="form-check"> <input class="form-check-input" type="[1]" id="check1"> <label class="form-check-label" for="check1">Option 1</label> </div>
The type attribute for a checkbox input must be checkbox to create a checkbox.
Complete the code to create a Bootstrap radio button input.
<div class="form-check"> <input class="form-check-input" type="[1]" name="options" id="radio1"> <label class="form-check-label" for="radio1">Choice A</label> </div>
The type attribute for a radio button input must be radio to create a radio button.
Fix the error in the code to correctly group radio buttons so only one can be selected.
<div class="form-check"> <input class="form-check-input" type="radio" name="[1]" id="radioA"> <label class="form-check-label" for="radioA">Option A</label> </div> <div class="form-check"> <input class="form-check-input" type="radio" name="[1]" id="radioB"> <label class="form-check-label" for="radioB">Option B</label> </div>
name values so radios act independently.Radio buttons are grouped by giving them the same name attribute value. This ensures only one can be selected at a time.
Fill both blanks to create a disabled Bootstrap checkbox with label 'Accept Terms'.
<div class="form-check"> <input class="form-check-input" type="[1]" id="acceptTerms" [2]> <label class="form-check-label" for="acceptTerms">Accept Terms</label> </div>
Use checkbox as the input type for a checkbox. Add the disabled attribute to make it unclickable.
Fill all three blanks to create a group of three radio buttons named 'color' with labels Red, Green, Blue.
<div class="form-check"> <input class="form-check-input" type="[1]" name="[2]" id="red"> <label class="form-check-label" for="red">Red</label> </div> <div class="form-check"> <input class="form-check-input" type="[1]" name="[2]" id="green"> <label class="form-check-label" for="green">Green</label> </div> <div class="form-check"> <input class="form-check-input" type="[1]" name="[2]" id="blue"> <label class="form-check-label" for="blue">Blue</label> </div>
Use radio as the input type for radio buttons. Use the same name attribute value 'color' to group them.