In today’s busy world, website users’ time is limited. For us to help them work with us quickly and efficiently, we need to ensure that our website forms are accessible and responsive. Here are some tips for making accessible and responsive forms:
- Logical and easy to use. Make sure your forms are set up in a logical tab order and provide clear instructions. Also, use plain language for form instructions. If you don’t really need to know the answer to a question to process the form, don’t ask it!
- Required fields clearly indicated. Red is a color that causes pause, but color should not be the only thing used to convey meaning, as not everyone can see the color red. Include other indicators such as asterisks, bold text, etc.
- Group and label items. You should have labels that clearly describe what you are asking the user to complete. Use the HTML tags <fieldset> and <legend> to group and relate items.
- ARIA attributes. Accessible Rich Internet Applications (ARIA) is a set of accessibility attributes that you can use with your HTML. Use the native HTML element or attributes if available, and supplement with ARIA attributes.
- Stack the form on smaller screens. By using responsive design techniques or frameworks, you can ensure that your form is laid out in one column on a smaller screen or multiple columns on a larger screen.
- Place labels above the form field. By placing the labels above the form field, you are displaying a consistent look and feel for both large and small screens.
- Leverage HTML 5 input types. HTML 5 allows you to specify a number, telephone (tel) and email address input type that will automatically launch the users’ number keyboard on a mobile device.
- Break lengthy forms into multiple pages. Instead of having a long scrolling form, break your form up into multiple pages. Include a progress bar so the user feels like they are making progress and know how soon they will be done.
- Size matters on touch screens. Make your form field height a minimum of 2 em/24 px to ensure they are compatible with touch screens.
You can follow Leslie on Twitter.