Buttons
Learn how to implement custom buttons and button groups in Bootstrap.
We'll cover the following
Buttons are one of the most crucial HTML elements we use in our websites, and with Bootstrap, we can customize them. Let’s study some features of the buttons provided by Bootstrap.
Theme
We use the .btn
class to set custom properties on our button element. We can set colors by using .btn-*
, with *
indicating the colors from the Bootstrap color palette.
Note: We can apply the Bootstrap
.btn
class on elements other than<button>
, such as<a>
,<div>
, etc.
Get hands-on with 1200+ tech skills courses.