Checkbox

Form element for selecting many options

Demo

Languages

See more examples

API

Tag

Name Type Content
input Native element None

Attributes

Name Value Description
name required String All checkboxes in a group use the same name.

Guidelines

Radio, checkbox, or select?

There's many uses cases where a single checkbox works very well and other use cases where 50 checkboxes makes sense too. If only one of the options can be selected, use radio or select.

Accessibility

Like other input elements, be sure to use for and id.