Easy learning with example program codes

Bootstrap Buttons Tutorial

Bootstrap provides the following classes to achieve different styles of buttons.

• .btn
• .btn-default
• .btn-primary
• .btn-success
• .btn-info
• .btn-warning
• .btn-danger
• .btn-link

Bootstrap Buttons Style Example:

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap Buttons Style Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>
<div class="container">
  <h2>Bootstrap Button Styles Example</h2>
  <button type="button" class="btn">Basic</button>
  <button type="button" class="btn btn-default">Default</button>
  <button type="button" class="btn btn-primary">Primary</button>
  <button type="button" class="btn btn-success">Success</button>
  <button type="button" class="btn btn-info">Info</button>
  <button type="button" class="btn btn-warning">Warning</button>
  <button type="button" class="btn btn-danger">Danger</button>
  <button type="button" class="btn btn-link">Link</button>      

Try it:

Bootstrap Buttons Style Example on

Please follow and like us:

Bootstrap 3 Tutorial

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki