From the course: Bootstrap 5 Essential Training
Unlock this course with a free trial
Join today to access over 23,300 courses taught by industry experts.
Checks and radios - Bootstrap Tutorial
From the course: Bootstrap 5 Essential Training
Checks and radios
- [Instructor] Checkboxes are probably one of the more complicated types of elements that you can code. However, most of it has to do with the fact that there are different kinds of checkbox fields. So there are checkboxes, radios, and switches. Let's take a look at how they work. To create one of these fields, you add a form-check class to the field that you want to take care of and then you add some additional options. So you can add form-check label, form-check input or form-check inline. And we'll take a look at what those look like. And then there's also this really cool form-switch option that you can use. There's also going to be a way of making a normal button behave as a checkbox or a radio. And if you want to learn more about that though, I did take care of showing you that in the video on buttons, but I will show you an example here anyways. So let's check these out. And you can see that the checkboxes look really nice. There they are. And this is a radio button. So in a…