HTML and XHTML
This technique relates to Success Criterion 3.3.5: Help (Advisory).
The objective of this technique is to provide context sensitive help for users as
they enter data in forms by providing the help information in a
title attribute. The help may include format information or examples of input.
Current user agents and assistive technologies do not always provide the information
contained in the
title attribute to users. Avoid using this technique in isolation until the
title attribute has wide-spread support.
A mapping application provides a form consisting of a label "Address:", an input box
and a submit button with value "Find map". The input box has a
title attribute value with an example of the address format the user should enter.
<label for="searchAddress">Address: </label> <input id="searchAddress" type="text" size="30" value="" name="searchAddress" title="Address example: 101 Collins St, Melbourne, Australia" />
A form that allows users to pay their bill online requires the user to enter their
account number. The input box associated with the "Account number" label has a
title attribute providing information on locating the account number.
<label for="accNum1">Account number: </label> <input id="accNum1" type="text" size="10" value="" title="Your account number can be found in the top right-hand corner of your bill." />
- Identify form controls that require text input.
- Check that each form control has an explicitly associated label
- Check that each form control has context-sensitive help provided in the
- Checks #2 and #3 are true.