Set active state for Bootstrap Buttons

To set the active state for Bootstrap Buttons, use the .active class.

The button will appear pressed as in the following code

Example


   
      Bootstrap Example
      
      
      
   
   
      

The following are some buttons:

               
Updated on: 2026-03-11T22:50:42+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements