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"]
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
Subscribe to the newsletter (custom ARIA checkbox)