Form Layouts
Since Bootstrap appliesdisplay: blockand width: 100%to almost all our form controls, forms will by default stack vertically. Additional classes can be used to vary this layout on a per-form basis.
                        
                    Form groups
                                The .form-groupclass is the easiest way to add some structure to forms. It provides a flexible class that encourages proper grouping of labels, controls, optional help text, and form validation messaging. By default it only applies margin-bottom, but it picks up additional styles in .form-inlineas needed. Use it with <fieldset>s, <div>s, or nearly any other element.
                            
                            
                        Form grid
More complex forms can be built using our grid classes. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.
Form row
                                You may also swap .rowfor .form-row, a variation of our standard grid row that overrides the default column gutters for tighter and more compact layouts.
                            
                            Complex layout
More complex layouts can also be created with the grid system.
Horizontal form
                                Create horizontal forms with the grid by utilizing the grid classes. Be sure to add .col-form-labelto your <label>s as well so they’re vertically centered with their associated form controls.
                            
                            Horizontal form label sizing
                                Be sure to use .col-form-label-smor .col-form-label-lgto your <label>s or <legend>s to correctly follow the size of .form-control-lgand .form-control-sm.
                            
 
                                 
                                 
                                 
                                