Bootstrap Forms

Bootstrap Forms are used to build clean, responsive, and consistent form layouts. Bootstrap provides classes to style inputs, labels, checkboxes, radio buttons, select menus, and more, with minimal CSS.

Available in Bootstrap 3, 4, and 5. Classes differ slightly across versions.


✅ Basic Form


 

  • .form-group → Wraps each label and input for proper spacing.

  • .form-control → Styles inputs, textarea, and select elements.


🔹 Input Types



 

  • All standard HTML input types are supported with .form-control.


🎯 Textarea



 


🔹 Select Menu



 


✅ Checkboxes & Radio Buttons


 

  • Use .checkbox and .radio for proper Bootstrap styling.


🔹 Inline Form



 

  • .form-inline → Makes inputs and buttons appear inline horizontally.


🎨 Horizontal Form



 

  • .form-horizontal → Aligns labels and inputs side by side using grid classes (col-sm-*).


🔹 Disabled & Readonly Inputs



 


✔ Summary

Feature Supported
Input types (text, email, password, etc.) ✔️
Textarea ✔️
Select dropdowns ✔️
Checkboxes & Radio ✔️
Inline forms ✔️
Horizontal forms ✔️
Disabled & readonly ✔️
Buttons (primary, success, etc.) ✔️

You may also like...