If an input field collects frequently asked data, make sure the purpose is defined in the code

Forms often require information that is also requested in many other forms. This applies to frequently requested data such as name, e-mail address and telephone number.

The purpose of an input field can be defined in the code. This allows browsers to understand what data is being requested. A browser can then already (partly) automatically fill in the form itself. This is useful for all visitors, but it is even more important for visitors with a motor disability. Filling out a form can take them a lot of time.

To do this, use the autocomplete attribute in the code, adding the input field’s purpose to the <​input> element.

It looks like this in the code:

				
					
				
			

The W3C has a list of 53 input purposes that should be used in the code. (https://www.w3.org/TR/WCAG21/#input-purposes).