Checkboxes
A form element that indicates selected values using a check mark. Used to capture selections from predefined values.
A form element that indicates selected values using a check mark. Used to capture selections from predefined values.
Helper classes: Looking for a complete list of helper classes for these components?View helper classes
Redlines: We don't include redline comps because it's always more accurate to use developer tools to inspect the coded components, or a plugin such as the Prism Redline Tool.
Used when there is a list of predefined options and the user can select any number of them.
These values should be sorted in an easily scannable order (e.g. alphabetically or by popularity).
By default, a checkbox or list of checkboxes should start unchecked.
Remember to wrap the checkbox(es) with fieldsets and legends to make them accessible.
Horizontal inline checkboxes can make it difficult to tell which label pertains to which checkbox, so use them sparingly.
Negative language in labels can be counterintuitive. For example, use “I want to receive a promotional email” instead of “I don’t want to receive promotional email.”
Selecting a checkbox should not trigger unexpected changes in context, such as causing significant changes to the page content or opening a new window.
Let users check the checkbox by clicking on either the checkbox itself or its label.
Title case, 2-3 words maximum.
Do not combine actions in a label (exception:
"Customize & Buy").
If standard labels don't fit the button's
purpose, align label with the task the user is attempting.
Please refer to the
Dell Technologies branding website, https://brand.delltechnologies.com/faq/#voice, for further information
regarding call-to-action labels and usage.
A checkbox can be:
The A11Y Style Guide has excellent examples of markup for checkboxes.
The W3C Web Accessibility Initiative (WAI) develops standards and support materials to help you understand and implement accessibility.
Please follow the best practices for checkboxes from WAI-ARIA authoring practices 1.1.
Please also refer to these recommendations for checkboxes from WAI-ARIA 1.1.
You may refer to this example of a two-state checkbox and example of a mixed state checkbox from WAI-ARIA practices 1.1.
You may also refer to these tutorials for forms from Web Accessibility Tutorials.