Complete the code to create a basic input group with a text input and a button.
<div class="input-group"> <input type="text" class="form-control" placeholder="Enter text"> <button class="btn btn-primary" type="button">[1]</button> </div>
The button text should be "Submit" to clearly indicate the action.
Complete the code to add a text prefix inside the input group.
<div class="input-group"> <span class="input-group-text">[1]</span> <input type="text" class="form-control" placeholder="Username"> </div>
The '@' symbol is commonly used as a prefix for usernames.
Fix the error in the input group code by completing the missing class name.
<div class="input-group"> <input type="text" class="[1]" placeholder="Search"> <button class="btn btn-outline-secondary" type="button">Go</button> </div>
input-group-text on input instead of on span elements.The input element inside an input group must have the class form-control for proper styling.
Fill both blanks to create an input group with a checkbox before the input.
<div class="input-group"> <div class="input-group-text"> <input class="form-check-input mt-0" type="[1]" value="" aria-label="Checkbox for following text input"> </div> <input type="text" class="[2]" placeholder="Check me"> </div>
The input type should be checkbox and the text input needs the form-control class.
Fill all three blanks to create an input group with a dropdown button on the right.
<div class="input-group"> <input type="text" class="[1]" placeholder="Dropdown input"> <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="[2]" aria-expanded="false"> [3] </button> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="#">Action</a></li> <li><a class="dropdown-item" href="#">Another action</a></li> </ul> </div>
The input needs the form-control class, the button toggles a dropdown, and the button text is 'Options'.