From the course: Bootstrap 4 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a basic form

Create a basic form - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Create a basic form

- [Instructor] Bootstrap has some fantastic classes to help you build forms. Let's take a look at some of the basic options and start working on a simple form. The basic way to group form elements is with a form group class. It can be used with any block element like fieldsets and divs and adds a bit of spacing to the bottom of the element. It also sets the group to display block. And it's required for proper layout of some elements. There's another class you can use for basic form text elements like paragraphs and text that belongs underneath input fields. Now for basic text input fields, you want to use the form control class. It's meant for inputs, select and text areas. There is a form control label that you should use on labels belonging to form controls. And finally, there is an optional form control file, specifically for file inputs if you're going to be using those. So let's take a look at a basic form that I've prepared for you right here. All it has is a form element and…

Contents