If you want the user to be able to choose from a list of pre-selected options, you utilize checkboxes.
Example
Example Explained
Use a wrapper element with class=”form-check” to style checkboxes and guarantee that labels and checkboxes have the correct margins.
Next, give label elements the .form-check-label class and checkboxes inside the .form-check container the .form-check-input class to appropriately design them.
If you would like the checkbox to be checkedby default, use the checked property.
Radio buttons
If you want to restrict the user to choose only one choice from a list of pre-selected options, you can use radio buttons.
Example
Option 1
Option 2
Option 3
Toggle Switches
To style your checkbox as a toggle switch, combine the .form-switch class with the .form-check container as follows: