VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-checks-and-radios-without-labels/

⇱ Bootstrap 5 Checks and Radios Without Labels - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Checks and Radios Without Labels

Last Updated : 23 Jul, 2025

Bootstrap 5 Checks and radios are a way to take boolean type values easily. Generally, they have a label that shows what value it is taking mainly for user experience and some assistive technologies to work correctly. The label can be removed too for the switch as well as the radio inputs. Checks and radios without labels are used when we need to create checkboxes and radios without any label text.

Bootstrap5 Checks and radios Without labels class:

  • .form-check: The .form-check is omitted in this technique and only the input tag is used. We should add an aria-label so that assistive technologies can interpret it well.

Syntax:

<input class="form-check-input" 
 type="checkbox/radio" 
 id="..." 
 aria-label="...">
 

Example 1: The code example below demonstrates how we can have checks without labels without different backgrounds. The checks in the below row are disabled

Output:

👁 Image
 

Example 2: The code example below demonstrates how we can have radio inputs without labels.

Output:

👁 Image
 

Reference:https://getbootstrap.com/docs/5.1/forms/checks-radios/#without-labels 

Comment
Article Tags:

Explore