Google News
logo
Bootstrap-4 - Interview Questions
What is Bootstrap 4 forms ?
The Bootstrap 4 forms are textual form controls like <input>, <textarea>, and <select> elements with class .form-control have a width of 100% by default. 

Horizontal form : Create horizontal forms with the grid by adding the .row class to form groups and using the .col-*-* classes to specify the width of your labels and controls.

Be sure to add .col-form-label to your <label>s as well so they’re vertically centered with their associated form controls. For <legend> elements, you can use .col-form-legend to make them appear similar to regular <label> elements.

Form and Label Sizing : To Use .col-form-label-sm or .col-form-label-lg to your <label>s to correctly follow the size of .form-control-lg and .form-control-sm.

And so many forms is there Inline Forms, Help text & Disabled Forms, Readonly plain text, etc,.

Advertisement