Bootstrap 5 Checks and Radios (original) (raw)

Last Updated : 23 Jul, 2025

Bootstrap 5 provides us with utility Checks and radios. This utility is used for creating checkboxes and radio without using CSS.

**Bootstrap 5 Checks and Radios:

**Example 1: Let's see an example of Bootstrap 5 Checks and radios by creating checks.

HTML `

GeeksforGeeks

Bootstrap5 Checks and radios


<div class="form-check">
    <input class="form-check-input"
           type="checkbox">
    <label>GFG Checkbox 1</label>
</div>
<div class="form-check">
    <input class="form-check-input"
           type="checkbox" checked>
    <label>GFG Checkbox 2</label>
</div>

`

**Output:

**Example 2: Let's see an example of Bootstrap 5 checks and radios by creating radios.

HTML `

GeeksforGeeks

Bootstrap5 Checks and radios


<div class="form-check">
    <input class="form-check-input" 
           type="radio" name="flexRadioDefault" 
           checked>
    <label>
        GFG Radio 1
    </label>
</div>
<div class="form-check">
    <input class="form-check-input" 
           type="radio" name="flexRadioDefault">
    <label>
        GFG radio 2
    </label>
  </div>

`

**Output:

**Reference: https://getbootstrap.com/docs/5.0/forms/checks-radios/