Tables

Tables organize content in a grid-like structure with rows and columns. They can make it easier to understand complex content.

When to use tables

Use tables when you need to display a matrix-style relationship, a collection of data with shared categories, or otherwise structured content. A good example is a user’s checkout history in Account, which contains each item’s title and author, call number, and checkout and return dates.

Only use tables if they’re the best option for displaying the content. Never use them to create layouts. 

Guidelines for tables

  • Always set the top row as the header.
  • Use concise, plain language written in sentence case for the column labels in the header row. 
  • Minimize the number of columns. Reading down is easier than reading across. 
  • Use the caption to provide extra context about the information within the table as appropriate.

Relevant WCAG guidelines

Code example

See example pen by U-M Library Design System (@umlibrary-designsystem) on CodePen.