Page Title: moonrocks FOR SALE ONLINE - Official Moonrock Shop
July 31, 2021 01:26

Forms submitted using buttons

Actions

Severity Action
no actions

Details

Rule ID Focus 5
Definition Forms must use input[type="submit"] or other form control buttons for submitting forms.
Purpose
  • Using a submit button allows users to easily identify and control how to submit form information to a server for processing. Forms that are submitted through changes in focus or selection may result in users prematurely submitting the form or not being aware they submitted the form.
WCAG Success Criteria

3.2.2 On Input (Level A, Primary Success Criterion)

Rule Category Forms
Scope Element
Target Resources input[type="submit"], input[type="button"], input[type="image"], button, [role="button"]
  • button
Techniques
  • The preferred technique for submitting forms is with the use of the input[type="submit"] form control.
  • An alternative techniques include using other HTML form control elements, including input[type="button"], input[type="image"] or button elements with an accessible name indicating that the button is for submitting form information.
  • In the case when a non-form control element (e.g. a or div element) is being used to submit the form, the element can use ARIA [role="button"] attribute with the accessible name indicating that the button is for submitting form information.
Informational Links

Element Results

Element Identifier Result Element Position Message

Column Definitions

Element Identifier
Information about the element associated with the result.
The information typically includes the tag name, accessible name or other information related to the rule requirements.
"Page" means that the result applied to the page. For example, the rule "One main landmark on the page" is a page level rule.
Element Position
The element position is based on the DOM order of elements in the page.
The element position maybe useful in helping to locate a specific element on the page evaluated (e.g smaller numbers are typically toward the beginning of a page and larger numbers typically toward the end of a page).
Element position 1 is the first element.
The highest element position is the last element.
Element position values for most rule/page results will not be consecutive since a rule only applies to a sub set of elements found on a page.