Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Bootstrap5 Buttons

Bootstrap5 Buttons

Bootstrap 5 provides buttons in different styles.

Example

<button type="button" class="btn">

Basic Buttons

button

<button type="button" class=">

btn btn-primary

"

Primary Buttons

button

<button type="button" class=">

btn btn-secondary

"

Secondary Buttons

button

<button type="button" class=">

btn btn-success

"

Success

button

<button type="button" class=">

btn btn-info

"

Information

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-dark

"

black

button

<button type="button" class=">

btn btn-light

"

Light

button

<button type="button" class=">

btn btn-link

"

link

button

Try it »

Button classes can be used on ,