Julia Zakrocka 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?
Piotr Źrołka
Accessibility expert & CEO
Recommended articles
-
19.07.2024AccessibilityWCAG 2.1 – Criterion 3.3.3 – Error Suggestion (Level AA)
We all like to know when we’ve made a mistake, right? Well, maybe not all of us… Ideally, it’s best…
-
19.02.2023AccessibilityWCAG 2.1 – Criterion 1.2.6 – Sign Language (Level AAA)
Today, we focus on another accessibility criterion – 1.2.6 – sign language (Level AAA). Do you remember the recent awards…
-
02.06.2023AccessibilityWCAG 2.1 – Criterion 1.4.2 – Sound Control (Level A)
The next WCAG criterion before us – today we’re focusing on 1.4.2 – sound playback control. The criterion is short…