Accessibility · Middle · Question 29 of 75
When should you use role="switch" rather than a checkbox?
- 1For an on/off setting that takes effect immediately
- 2For any field that is required in the form
- 3For a choice between more than two options
Show the answer
Correct answer: For an on/off setting that takes effect immediately
Explanation
A switch communicates on and off rather than checked. Use a native checkbox as a base when you can.