While working with input fields, we might want to make it more interactive and intuitive, making users know that they are doing the right thing and helping them ease the process of submitting or filling out a form. The bootstrap input-group
helps to do that.
input-group
? The input-group
is a tag class that bootstrap uses to append or prepend text to an input
HTML form tag.
Furthermore, the input-group
class is a wrapper to improve the input form fields by prepending or appending an icon, text, or a button to the input form field.
input-group-prepend
class adds the group in front of the input.input-group-prepend
class adds the group behind or at the back of the input.input-group-text
class styles the text inside the group.From the code above:
input-group
in the class
attribute of the div
tag. This is a wrapper for the input
tag.input-group-prepend
is the class
attribute of a div
tag that is used to wrap the prepend text to the input
tag.input-group-text
to append the @
sybol to the html ìnput
field.input
field with class="form-control"
Do not forget to add thecss
link and thescript
link as this the only way you allow bootstrap add styling to your page