Using the button component
Buttons are one of the most commonly used components in Bootstrap. In version 4 of Bootstrap, some of the new options for the button component include an outlined variation, toggle states, and button groups with checkboxes and radios. Before we get into that, let's review the basic button options and configuration. Here's a few general points to keep in mind when using buttons:
No matter what type of button you are creating, it will require the
.btn
CSS class to be included at a minimumThe
.btn
class can be attached to a number of HTML tags, such asĀ<button>
,<a>
, and<input>
, to render a buttonThere are different CSS classes for creating different size and color buttons