0
0
Bootsrapmarkup~5 mins

Input groups in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an input group in Bootstrap?
An input group in Bootstrap is a way to combine inputs and add-ons like text, buttons, or icons together in one line to make forms easier to use and look neat.
Click to reveal answer
beginner
How do you add text before an input field using Bootstrap input groups?
You wrap the input and the text inside a <div class='input-group'>. Then add a <span class='input-group-text'> with the text before the <input> element.
Click to reveal answer
intermediate
Which Bootstrap class is used to group buttons with inputs?
The class input-group is used to group buttons and inputs together. Buttons inside input groups usually have the class btn and are placed inside input-group-text containers.
Click to reveal answer
intermediate
How can you add a button inside an input group on the right side?
Place the button inside a <button class='btn btn-primary'> directly inside the input-group container, after the <input> element.
Click to reveal answer
beginner
Why are input groups useful in forms?
Input groups help users understand the input's purpose by adding context like units, currency symbols, or action buttons. They also keep the form clean and aligned, improving user experience.
Click to reveal answer
Which Bootstrap class wraps an input and its add-ons to create an input group?
Ainput-group
Bform-control
Cinput-addon
Dform-group
How do you add static text before an input field in Bootstrap input groups?
AUse <code>&lt;span class='input-group-text'&gt;</code> before the input inside <code>input-group</code>
BAdd <code>placeholder</code> attribute to input
CWrap input in <code>form-text</code>
DUse <code>&lt;label&gt;</code> inside input group
Which element is commonly used to add a button inside an input group?
A<code>&lt;span class='btn'&gt;</code>
B<code>&lt;input type='button'&gt;</code>
C<code>&lt;div class='btn'&gt;</code>
D<code>&lt;button class='btn'&gt;</code>
What is the purpose of input groups in forms?
ATo create dropdown menus
BTo combine inputs with related text or buttons for clarity
CTo validate inputs automatically
DTo add animations to inputs
In Bootstrap, which class is used to style the text or button inside an input group?
Ainput-text
Bform-control
Cinput-group-text
Dbtn-group
Explain how to create an input group with a dollar sign before a text input using Bootstrap.
Think about wrapping the input and the dollar sign text inside a special container.
You got /3 concepts.
    Describe why input groups improve user experience in web forms.
    Consider how adding symbols or buttons next to inputs helps users.
    You got /3 concepts.