Buttons


Bootstrap provides different styles of buttons.

Button Classes
  • btn
  • btn-primary
  • btn-success
  • btn-info
  • btn-warning
  • btn-danger
Button Size Classes
  • btn-lg
  • btn-sm
  • btn-xs
  • btn-block

A button can be set to an active (appear pressed) or a disabled (unclickable) state.

  • active
  • disabled


Source Code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tutor Joes</title>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <!--<link rel="stylesheet" href="css/bootstrap.min.css">-->
</head>
<body>
    <div class="container">
    <h3>Bootstrap Buttons</h3>
        <div class="row">
            <div class="col-md-6">
                <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-danger">danger</button>
                <button type="button" class="btn btn-warning">warning</button>
            </div>
            <div class="col-md-6">
                <button type="button" class="btn btn-success btn-xs">Extra Small</button>
                <button type="button" class="btn btn-success btn-sm">Small</button>
                <button type="button" class="btn btn-success btn-lg">Large</button>
                <button type="button" class="btn btn-success">Normal</button>
                <button type="button" class="btn btn-success btn-block">Normal</button>
            </div>
            <div class="col-md-6">
                <button type="button" class="btn btn-success active">Active</button>
                <button type="button" class="btn btn-success disabled">Disable</button>
            </div>
            <div class="col-md-6">
                <a href="#" class="btn btn-danger">Anchor Button</a>
                <button type="button" class="btn btn-success">Button</button>
                <input type="submit" class="btn btn-danger" value="submit">
            </div>
        </div>
    </div>	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!--<script src="js/jquery.min.js"></script>-->
    <!--<script src="js/bootstrap.min.js"></script>-->
</body>
</html>
To download raw file Click Here