Test Group 7: Form Controls

Markup and Rules for Form Controls
Test
Number
Test Description Rules Pass Nodes Fail Nodes Markup
30 Input Controls Are Labeled FORM-2: The elements input[type="text | password | checkbox | radio | file"], select and textarea must have labels. Yes None
  • SELECT (HTML 4.0)
  • OPTION (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • TEXTAREA (HTML 4.0)
31 Input Controls Are Not Labeled FORM-2: The elements input[type="text | password | checkbox | radio | file"], select and textarea must have labels. None Yes
  • SELECT (HTML 4.0)
  • OPTION (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • TEXTAREA (HTML 4.0)
32 Input Controls Are Incorrectly Labeled FORM-2: The elements input[type="text | password | checkbox | radio | file"], select and textarea must have labels. None Yes
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
33 Input [type=image] Control Has ALT Text FORM-3: The element input[type="image"] must have alt text: Yes None
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
34 Input [type=image] Control Does Not Have ALT Text FORM-3: The element input[type="image"] must have alt text: None Yes
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
35 Input Buttons Have VALUE Text FORM-4: The elements input[type="button"] must have and input[type=[submit | reset"] may have value text. Yes None
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
36 Input Buttons Do Not Have VALUE Text FORM-4: The elements input[type="button"] must have and input[type=[submit | reset"] may have value text. None Yes
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
37 LABEL and LEGEND Elements Have Content FORM-5: Each label, button and legend element must contain text content. Yes None
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
38 LABEL and LEGEND Elements Have No Content FORM-5: Each label, button and legend element must contain text content. None Yes
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
39 LABEL and LEGEND Elements Have Content other than image ALT text FORM-5: Each label, button and legend element must contain text content. Yes None
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
40 LABEL and LEGEND Elements Only Contain Image ALT text FORM-5: Each label, button and legend element must contain text content. None Yes
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
41 Form Control IDs are Unique FORM-7: If a form control has an id attribute its value must be unique on the page. Yes None
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
42 Form Control IDs are Not Unique FORM-7: If a form control has an id attribute its value must be unique on the page. Yes Yes
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
43 Effective Labels Are Unique FORM-8: Each _effective label_ within a page should be unique. Yes None
  • BUTTON (HTML 4.0)
  • SELECT (HTML 4.0)
  • OPTION (HTML 4.0)
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
44 Effective Labels Are Non-Unique FORM-8: Each _effective label_ within a page should be unique. None Yes
  • BUTTON (HTML 4.0)
  • SELECT (HTML 4.0)
  • OPTION (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • TEXTAREA (HTML 4.0)
45 Focusable Text Between Form Controls FORM-9: Text content that cannot receive the focus should not be placed between form controls. Yes None
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)
46 Non-Focusable Text Between Form Controls FORM-9: Text content that cannot receive the focus should not be placed between form controls. None Yes
  • FIELDSET (HTML 4.0)
  • FORM (HTML 4.0)
  • INPUT (HTML 4.0)
  • LABEL (HTML 4.0)
  • LEGEND (HTML 4.0)
  • TEXTAREA (HTML 4.0)