Close

Form Elements

All common form elements

Form Elements Sample(s):

Checkboxes

Default and error states for common form checkboxes. Checkboxes are validated on-blur to give feedback as soon as a user exits a form field. Make sure to include the required and aria-required attributes only when a field is required.

The aria-checked attribute of a checkbox indicates whether the input is checked (true), unchecked (false), or represents a group of elements that have a mixture of checked and unchecked values (mixed). Many checkboxes do not use the mixed value, and thus are effectively boolean checkboxes.

MDN Reference | ARIA reference

Input Elements

Default and error states for common form inputs. Inputs are validated on-blur to give feedback as soon as a user exits a form field. Make sure to include the required and aria-required attributes only when a field is required.

A form may be a mix of host language form controls, scripted controls, and hyperlinks. Authors are reminded to use native host language semantics to create form controls, whenever possible. For search facilities, authors SHOULD use the search role and not the generic form role. Authors SHOULD provide a visible label for the form referenced with aria-labelledby. If an author uses a script to submit a form based on a user action that would otherwise not trigger an onsubmit event (for example, a form submission triggered by the user changing a form element's value), the author SHOULD provide the user with advance notification of the behavior.

MDN Reference | ARIA reference

Date Input

Additional information about this form field. This is not a required content block.

Email Input

Number Input

Password Input

Must be at least 7 characters and contain both a number and a letter

Telephone Input

Text Input

Radio Buttons

Default and error states for common and advanced form radio buttons. Radio buttons are validated on-blur to give feedback as soon as a user exits a form field. Make sure to include the required and aria-required attributes only when a field is required.

A checkable input in a group of elements with the same role, only one of which can be checked at a time. Authors SHOULD ensure that elements with role radio are explicitly grouped in order to indicate which ones affect the same value. This is achieved by enclosing the radio elements in an element with role radiogroup. If it is not possible to make the radio buttons DOM children of the radiogroup, authors SHOULD use the aria-owns attribute on the radiogroup element to indicate the relationship to its children.

MDN Reference | ARIA reference

Default Form Radio Buttons

Do you or your firm use standard written contracts for all real estate transactions?

Advanced Form Radio Buttons

Per Claim

$250K

Aggregate

$500K

Most Common â–¾

Alternative Advanced Form Radio Buttons

Per Claim

Some additional content here.

Select Boxes

Default and error states for common form select boxes. Select boxes are validated on-blur to give feedback as soon as a user exits a form field. Make sure to include the required and aria-required attributes only when a field is required.

A form widget that allows the user to make selections from a set of choices.

MDN Reference | ARIA reference

Form Submit Buttons

Default Form Submit

Go Back