Skip to content
Justice Tech School

Buttons

Add .btn plus a variant such as .btn-primary. Use .btn-outline-* for outlined buttons, .btn-lg or .btn-sm for sizes and .disabled or the disabled attribute to turn them off.

Example
<button class="btn btn-primary">Save</button>
<button class="btn btn-outline-danger btn-sm">Delete</button>
<a href="#" class="btn btn-success btn-lg disabled">Done</a>

Exercise

Large button.

btn btn-primary btn-

Quiz Test

Which class gives an outline button?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.