- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Primary action in a set of Bootstrap buttons
The .btn-primary class provides extra visual weight and identifies the primary action in a set of buttons. To set primary action in Bootstrap button, you can try to run the following code −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <meta name = "viewport" content = "width=device-width, initial-scale = 1"> <link rel = "stylesheet" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> </head> <body> <button type = "button" class = "btn btn-primary">Primary Button</button> </body> </html>
- Related Articles
- Make a set of buttons appear vertically with Bootstrap
- Set active state for Bootstrap Buttons
- Set disabled state for Bootstrap Buttons
- Set positive action to the Bootstrap 4 card
- Set negative action to the Bootstrap 4 card
- Set success action for a list item in a list group with Bootstrap
- Set warning action for a list item in a list group with Bootstrap
- Set danger action for a list item in a list group with Bootstrap
- Set warning action with orange outlined Bootstrap 4 Button
- Add buttons in Bootstrap Navbar
- Set positive success action with green outlined Bootstrap 4 Button
- Usage of Bootstrap class panel-primary
- Bootstrap .btn-primary class
- Add sizes for Bootstrap Buttons
- Set negative action for Bootstrap 4 cards with red background color

Advertisements