Photo by Clément Hélardot on Unsplash WCAG 2.1 – Criterion 1.3.1 – Information and Relationships: (Level A) part 2
- Przejdź do artykułów z tagiem accessibility
- Przejdź do artykułów z tagiem digital accessibility
- Przejdź do artykułów z tagiem list
- Przejdź do artykułów z tagiem WCAG
- Przejdź do artykułów z tagiem WCAGacademy
Article content
Today, let’s continue with WCAG criterion 1.3.1 – let’s focus on lists.
Why is it worth grouping elements and how to do it?
The answer is quite trivial. By grouping certain elements, we know that they belong to a specific whole. We anticipate how many elements are in a given set. This structure creates a logical entity for us. Examples?
Shopping list – right from the start, we know the scope of our “undertaking.”
List of articles on accessibility – you immediately know how much you have to review and how much time you need (or rather can dedicate).
Lists can be ordered or unordered. How do we implement them?
Firstly – proper semantics.
First, we decide whether it is an ordered or unordered list.
Ordered list – `<ol>`
Unordered list – `<ul>`
Each subsequent element, a child of the list, will be our list item – <li>.
…
<p>Friday evening shopping list</p>
<ul>
<li>Lettuce</li>
<li>Bread</li>
<li>Water</li>
</ul>
…
Friday evening shopping list
* Lettuce
* Bread
* Water
We also have the option of using a definition list (`<dl>`), but it is no longer fully supported by all combinations of browsers and screen readers. In this case, it’s worth considering using a table, which we’ll discuss in the next article.
Link to a detailed description of the definition list: https://lnkd.in/dAEeCzxN
Link to the description of list types: https://lnkd.in/drAu2XVU
WCAG reference: https://lnkd.in/dKcSJw6d
Radosław Stachurski
Accessibility Specialist & WCAG 2.1 Auditor & Quality Assurance
Recommended articles
-
09.02.2023AccessibilityWCAG 2.1 – Criterion 1.2.4 – Live Captions (Level AA)
Criterion 1.2.4 (Level AA) concerns captions that should be added to live multimedia, such as interviews, podcasts, television news, or…
-
26.07.2024AccessibilityWCAG 2.1 – Criterion 3.3.4 – Error prevention (Legal, Financial, Data)(Level AA)
Have you ever made a mistake that could have cost you not only a lot of nerves but also hard-earned…
-
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…