What is the difference between form-group and input-group bootstrap?

Asked

Viewed 989 times

0

What is the difference? in which cases are used one or the other?

1 answer

1

the form-group is used in a div which will contain the objects of a form, it will be a 'INPUT GROUP', so we can for example group a label with an input as follows:

<div class="form-group">
    <label for="nome">Nome</label>
    <input type="text" id="nome" name="nome" class="form-control" />
</div> 

already the input-group is to unite two independent objects and form one, it is like having a text box united with a label giving the impression that it is a single object.

<div class="input-group">
    <div class="input-group-addon">@</div>
    <input class="form-control" type="email" placeholder="Entre com o email">
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.