Bootstrap Forms

In Bootstrap, there are three types of form layouts:

  • Vertical form (this is default)
  • Horizontal form
  • Inline form

Bootstrap Form Rules

There are three standard rules for these 3 form layouts:

  • Always use
    (helps improve accessibility for people using screen readers)
  • Wrap labels and form controls in
    (needed for optimum spacing)
  • Add class .form-control to all textual ,
Test it Now

2) Bootstrap Inline Form

In Bootstrap Inline forms, all elements are inline, left-aligned, and the labels are alongside.

This example is only applied to forms within viewports that are at least 768px wide!

Example:

Test it Now

3) Bootstrap Horizontal Form

You have to add some additional rules if you want to create a horizontal form.

Additional rules for a horizontal form:

Example:

Test it Now

Bootstrap 4 Forms

In Bootstrap4, form controls automatically receive some global styling with Bootstrap.

All textual ,

Test it Now
Next TopicBootstrap Alert




Hot Tutorials

Contact US

Email:[email protected]

Bootstrap Form
10/30