Checkbox - Bootstrap 5 & Material Design 2.0 forms. 17. To make a checkbox read-only do not initialize it, or include the read-only class which will not allow events. To make a checkbox checked by default, you give it the checked attribute. Checkboxes can be nested inside a