Data tables

People use tables to look things up and compare, and lose track when the headers scroll out of view.

Scrolling a wide table sideways. When the name column is last, every row is anonymous until the person scrolls to the end. When the name column is first, they know which row is which before scrolling.

The answer

Use real tables with marked-up headers, and keep the identifying column first. As strong as the weakest rule behind it: weak.

  • Mark header cells as headers and link them to their data cells in code, so the structure doesn’t depend on looks.
  • Use a real table for tabular data. Screen reader users find values faster in real tables than in grid layouts.
  • Keep sideways scrolling short. Put the identifying column first, and keep columns people compare side by side.

The other rules

  • A data table may scroll both ways on a narrow screen, but everything around it must still reflow.
  • Give the table a caption that names it.
  • Use the interactive grid pattern only when cells are edited or used. Otherwise use a plain table.
  • Keep column headings in view while the table scrolls.
  • For actions on several rows, put a checkbox on each row and the actions outside the rows.
  • Don’t edit a row in a dialog that hides the other rows when people need them for reference.
  • For long tables, use pages rather than endless scrolling when people need to reach or compare particular rows.

Accessibility

Open questions

  • OpenScroll or restructure wide tables on small screens? The mobile table studies found could not be opened.
  • OpenSticky headers, row density and row selection: no experiment found.
Checked November 12, 2026

Sources