form control
An element that collects user input, such as a text input, checkbox, switch, select or button.
In more detail
Accessible form controls need a label, must be reachable and operable with the keyboard, and must link any hint or error text with aria-describedby. Native HTML controls give most of this for free.
Related terms
- label element — The HTML element that names a form control; its for attribute (htmlFor in React) holds the control's id.
- aria-describedby — An ARIA attribute that links an element to other elements, by id, whose text gives it a longer description.
- button type — The type attribute of an HTML button: submit (the default inside a form), button (does nothing by itself) or reset.
- checkbox — A form control that can be checked or unchecked, usually submitted with a form.
Taught in
- Actionable Form Primitives: Buttons, Switches & Inputs — Design Systems & Component Engineering