For actions in forms, dialogues, and more, use Bootstrap's custom button styles, which come in a variety of sizes, states, and other features.
Bootstrap comes with a number of predefined button styles, each with its own semantic purpose and a few extras for more control.
The .btn classes are designed to be used with the <button> element. However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering).
When using button classes on <a> elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button" to appropriately convey their purpose to assistive technologies such as screen readers.
In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.
Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.
state of being active
When buttons are active, they will appear pressed (with a darker backdrop, darker border, and inset shadow). Because button>s employ a pseudo-class, there's no need to add a class to them. If you need to mimic the state programmatically, you can use .active (and the aria-pressed="true" attribute) to impose the identical active appearance.
Make buttons look inactive by adding the disabled boolean attribute to any <button> element.
Render buttons vertically
Apply the .btn-group-vertical class to the container element
Make button group take up full width
Buttons wrapped inside a .btn-group element only take up as much width as needed. To make the group span the entire width of the screen, use .btn-group-justified instead.
ATutorialHub Related Guide
panduranga gupta2021-07-05 07:03:13
good website for learning and help me a lot
The awsome website i am looking like for a long time, good work atutorialhub team keep doing
Learning a lot from the courses present on atutorialhub. The courses are very well explained. Great experience
It is very helpful to students and easy to learn the concepts
Great job Tutorials are easy to understand Please make use of it
Zain Khan2021-09-18 15:07:23
Great content and customized courses.
Rudrakshi Bhatt2021-09-09 15:08:10
Well structured coursed and explained really well!
Pavana Somashekar2021-09-11 15:09:08
Good platform for beginners and learn a lot on this website