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
-
24.03.2023AccessibilityWCAG 2.1 – Criterion 1.3.1 – Information and Relationships: (Level A) part 1
Is the structure on the website important? Today we will focus on the criterion that answers this question. This is…
-
10.08.2022AccessibilitySVG… SVG… what is SVG
SVG (Scalable Vector Graphics) – a vector graphic file format that, unlike raster formats like JPG, PNG, and GIF, is…
-
16.09.2024Blind perspectiveBlind Perspective: How to Find It
There was already an article in this series about online shopping, but that was more about everyday life. This time,…