Skip to main content

Tables

Description​

Tables help you to compare structured information against a single or multiple reference points.

When to use​

Use a table:
  • to compare values against the same criteria. To compare values there must be at least 2 columns and 2 rows of data
Do not use a table:
  • when the content is primarily explanatory - instead use headings, lists, cards or accordions
  • to impart patterns or trends - instead use a graph or chart using datawrapper
  • for page layout or visual formatting
Loading preview...

Guidelines for use​

A table includes a header row, a header column, rows, columns and cells. A horizontal scroll bar is displayed when the table doesn't fit the page width.

All text inside the table is left aligned and plain text only, no links.

  • Name - the internal name for your table
  • Header - this is optional and adds a H2 above the table to explain it. For a heading smaller than H2, use the text editor in the page you’re building or add a simple rich text block to support your table with a concise summary
  • Table - the first column form the headers for each row, the first row forms the headers for each column. Use clear headings that explain what the column or row represent. Keep cell content short and concise, with only 1 item per cell. If a cell is empty include 'no data'

For full implementation guidance in Contentful, see the table component page.

Accessibility​

The header row and column header is marked up so screen readers read out the row and column name with each cell.

Tables are designed to meet WCAG 2.1 Level AA standards. This includes appropriate colour contrast ratios, keyboard navigation support and screen reader compatibility.

For detailed information about our accessibility standards, see our Accessibility Statement.

Design resources​