--- url: "https://www.w3.org/WAI/WCAG22/Techniques/general/G224" titulek: "G224: Accounting for meaningful text indentation and Reflow | WAI | W3C" h1: "Technique G224:Accounting for meaningful text indentation and Reflow" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:31:44" znaku: 7031 slov: 1177 kodovani: "utf-8" sha256: "e5a0526348c1e60572d7f3bb2b4d6c0c71d1df6c069b1f99b9b248a912e1391e" --- # Technique G224:Accounting for meaningful text indentation and Reflow ## About this Technique This technique relates to [1.4.10 Reflow](https://www.w3.org/WAI/WCAG22/Understanding/reflow) (**Sufficient**). This technique applies to all technologies that support style switching. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description There can be instances where indentation of text is considered important to the presentation and understandability of the text content. If the indentations were to be removed, then meaning or functionality could suffer. For instance, the nesting of unordered lists can be harder to notice if indentations are removed. Additionally, maintaining indentations can be important to help understand code patterns, if not even necessary for the code to function. Since maintaining indentation is important for these instances of text, two-dimensional scrolling of these distinct sections of content could be necessary. However, there are still styling modifications that could be made to help ensure the indentation was maintained, but as much text was made visible within the viewport as possible. Making such adjustments could limit, if not mitigate any two-dimensional scrolling from occurring, making the content easier for people to read. ## Examples ### Example 1 A website conveys information in a nested list format. The understandability of the list hierarchy is supported by the indentation of the list content. While it is important for the individual list item text to reflow, the list hierarchy would suffer if flattened so that all content would fit within a 320 CSS pixel wide viewport. The following example list contains additional nested lists to provide more context for each of the parent list item's text. To maintain the visual hierarchy, the indentation of each list level remains present, but modified once an author defined CSS breakpoint is met. Additional styles are set for different breakpoints to mitigate against the potential for content to extend beyond a 320px wide viewport, while accounting for visual spacing against the borders of the viewport, to attempt to make the content not feel cramped. At the smallest breakpoint, the content of list items receive a minimum width to mitigate against potentially "squished" content lists with many nested levels. At this breakpoint, each nested list level can be horizontally scrolled into view, and once a nested list is visible within the viewport, only vertical scrolling will be necessary to read the content of the nested list's items. ```
Make a list using one of the HTML list elements, or even an ARIA role=list container.
There are three types of lists in HTML which can contain list items (li elements).
the ul element
the ol element
the menu element
Another type of list, description lists, exist as well - but they do not contain list items (li elements).
Neither the start or end tags of any of the HTML list elements are omissible.
The end tags of li elements can be omitted if the li element is immeditely followed by another li element or there is no more content in the parent list element.