Rendered from phase9/allowed.md

Phase 9 — Tables and Lists Allowed

This gauge covers Chapter 13 after Accessible Forms.

Learning goal

Choose list and table structures from the relationships in the content, then make those relationships clear to visual and assistive-technology users.

Inherited tools

Everything allowed through ./phase8-allowed.html remains available.

New HTML

Description lists

Data tables

The inherited ul, ol, and li are now studied in depth.

New attributes

New CSS

Learning rules

  1. Use ul when item order does not change the meaning and ol when sequence, rank, or count matters.
  2. Put list items inside li; place a nested list inside the li that owns it.
  3. Use dl for term/description, name/value, question/answer, or other directly associated groups. Do not use it merely to indent content.
  4. Use tables for genuinely tabular data whose rows and columns form relationships. Never use a table to arrange a page.
  5. Give a data table a concise caption that identifies its purpose or subject.
  6. Use th for headers and td for data. Do not use bold data cells as a substitute for real headers.
  7. On simple tables, add scope="col" to column headers and scope="row" to row headers.
  8. Use thead, tbody, and tfoot to group rows by purpose when those groups exist; they do not replace header cells.
  9. Keep table source order logical. CSS must not make a different visual order imply false data relationships.
  10. Use colspan and rowspan only when one cell truly spans related columns or rows. Prefer simple tables when possible.
  11. On narrow screens, wrap a wide table in an overflow container instead of changing its elements to block boxes and destroying the tabular layout.
  12. Do not remove list markers unless another visible treatment still makes the grouping or sequence clear.

Not allowed

Pages

Rules to lean on

Rules 2, 54–59, 72–80, 88, 93, 99–101, 111–122, and 123–134.