Checkbox group

One option is pre-checked and one is disabled. "Select all" becomes indeterminate for partial selections.

#selectAllinput[name="interest"]#interestJava

Radio groups

Only one option per group can be selected.

input[name="plan"]#planProinput[name="experience"][value="senior"]
Subscription plan
Experience level

Toggles and custom controls

The input behind a switch is visually hidden. The ARIA checkbox is a div with role and aria-checked.

#emailNotifications[role="checkbox"][aria-checked]
Off
On