Complete the code to create a basic Bootstrap text input field.
<input type="text" class="form-control [1]" placeholder="Enter your name">
The form-control class is required to style the input as a Bootstrap form control.
Complete the code to create a Bootstrap textarea with 3 rows.
<textarea class="form-control" rows="[1]" placeholder="Your message"></textarea>
rows attribute.The rows attribute sets the visible height of the textarea. Here, 3 rows are requested.
Fix the error in the code to properly create a Bootstrap checkbox input.
<div class="form-check"> <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" [1]> <label class="form-check-label" for="flexCheckDefault"> Default checkbox </label> </div>
checked=true which is invalid in HTML.In HTML, the correct way to mark a checkbox as checked is checked="checked".
Fill both blanks to create a Bootstrap select dropdown with a label.
<label for="[1]" class="form-label">Choose an option</label> <select class="form-select" id="[2]"> <option selected>Open this select menu</option> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select>
for and select's id.The for attribute in the label and the id of the select must match for accessibility and correct linking.
Fill all three blanks to create a Bootstrap input group with a text input and a button.
<div class="input-group mb-3"> <input type="[1]" class="form-control" placeholder="Search" aria-label="Search input"> <button class="btn btn-outline-[2]" type="button" id="button-addon2">[3]</button> </div>
The input type should be text for a search box. The button uses the Bootstrap color primary for styling. The button text is 'Go' to indicate action.