WCAG 2.1 – Criterion 3.3.2 – Labels and Instructions (Level A)
- Przejdź do artykułów z tagiem A11Y
- Przejdź do artykułów z tagiem accessibility
- Przejdź do artykułów z tagiem accessibilityMatters
- Przejdź do artykułów z tagiem WCAG
- Przejdź do artykułów z tagiem WCAG 2.1
- Przejdź do artykułów z tagiem Web Content Accessibility Guidelines
Article content
Hints… Do they have any connection to WCAG?
Yes, indeed. Labels and hints (or instructions) are described by the WCAG 3.3.2 criterion at level A, which is the most basic level.
WCAG 3.3.2 Labels and Instructions
The rule is that every form field on our website must have a properly assigned label or an implemented hint.
Why?
Thanks to labels and hints, our users can input their data much more quickly and easily, and we, as the creators of the website, can collect this data without any major issues. Sounds like a win-win, right?
How to properly implement a label or instruction?
- Assign a visible label to each form field using the `<label>` tag, which you should correctly link to the field (remember to match the `for` and `id` attribute values) – other ways to implement labels can be found on the W3C website.
- If hints are visible in the form, link them properly to the appropriate field using the `aria-describedby` attribute – example.
- In complex forms, remember to group them properly and provide appropriate descriptions using the `<fieldset>` and `<legend>` elements – for example: “Residential Address,” “Delivery Address,” and “Billing Address.” This technique is explained by W3C.
- Indicate whether a form field is required or optional (not just for assistive technology) – description of how to do this.
Not so daunting, right?
Did you know that issues with forms are one of the most common errors we encounter during audits? What do you think causes this?
Małgorzata Szymczak
Accessibility Specialist & Junior Frontend Developer
Recommended articles
-
08.11.2024Accessibility
From Theory to Practice: How to Promote Accessibility Awareness Within an Organization?
Accessibility is a process – we repeat this phrase at Kinaole like a mantra, whenever and wherever possible. Accessibility audits,…
-
24.06.2024Accessibility
WCAG 2.2 – Criterion 3.2.6 – Consistent Help (Level A)
WCAG 3.2.6 Consistent Help This criterion refers to the availability and ease of accessing help for the user. When designing…
-
28.06.2022Accessibility
Alternative Text for Images
Imagine this situation: all your web browsers suddenly stop working and do not display any images. On the websites, only…