Forms are indispensable. It is the moment when your website visitor can become a lead. However, not everyone can fill in a contact form.
In this blog I tell you the success criteria of a form, based on WCAG 2.1 level A. This blog is part of a series. In part one I teach you everything about accessible website texts and in part two you learn everything about accessible multimedia.
All non-text content needs a text alternative. Think of these, images, icons, buttons and animations. Provide aria tags and alt tags with a clear and concise description. An exception is an image that is only there for decoration, in this event leave the alt tag empty.
Note, if you use CAPTCHA, ensure you have a version where you are not dependent on images. Blind and partially sighted people will be unable to submit the form.
Never rely solely on shape, color, size, visual location, orientation, or sound. A common mistake with forms is a color-only error message. People who are color blind won't know what they have entered incorrectly.
The solution is to indicate which plane is wrong with both color and text. It is best practice to indicate what the error is. For instance, E-mail must be formatted correctly.
If you have not set a time limit on your forms, you can skip this criteria. If you have implemented time limits, make sure you have one of the following options:
Exceptions:
Descriptive headlines quickly clarify what is expected of the user. Headings don't have to be long. One word or an icon can sometimes be enough.
Before you put your form live, ask a colleague or other person if it is clear what is expected of them. Are there any doubts? Then change the headlines.
Make sure your form is operable via your keyboard. Test this by pressing tab and see if there is a line in the places where something needs to be entered. This outline is called a focus element. If you don't have this, it's best to work with a developer to implement one.
Tip for the design of a focus element, don't depend only on color, make sure you have an outline and not just text that changes color.
Labels, like headlines, make clear what is expected of the user. The following also applies to labels, remember short but sweet!
Labels are sometimes overlooked resulting in issues, as screen readers read the labels of a form. Therefore, users who rely on a screen reader also know what is expected of them. You can easily adjust these labels via the HubSpot forms.
Need help? We are happy to help you with your accessible website. Contact us for more information.