Here is an example of a simple bootstrap button. Which gives different look to the button.
btn-* - The classes like btn-primary, btn-danger, btn-success, etc specifies color, background-color and border-color to the button.
btn- The btn class provides the basic structure to the button, like padding, border, border-radius, etc.
To create a bootstrap button you have to use at least 2 classes: For example for dangerous action you can add btn-danger class to the button to create a red button, semantically it specifies danger. Also in this tutorial, you will be able to add icons to the button which adds extra meaning to the button.īootstrap provides several predefined button style with semantic meaning. Using bootstrap you can easily create such an action button. In this case, it becomes essential for web developers to create a beautiful button that explains their work. Most of the buttons are used to take some action from the user side. Actions must be added to buttons using JavaScript or by associating the button with a form. No action takes place by default when a button is clicked. Any text appearing between the opening and closing tags will appear as text on the button. Either it is used to create some action or to trigger an event. The