Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Always use labels for form input elements such as radio buttons, dropdowns, checkboxes, and text inputs.

Info

For a Search input, the field does not require a visible label i.e. Search, but does required a “for” attribute for users using assistive technology.

Do:

  • Always use a “for” attribute that ties the label to the specific input

  • All form elements must include a label with matching ID

  • Always specify if a response is optional or required in brackets at the end of a label

  • Left-align labels, text inputs, and hint text

...