Skip to content
BENIBIX Learn

Data Table

Design🖼️ User InterfaceData Display

Also known as Table (UI), Data Grid, Sortable Table

Facts set out in rows and columns. A top row names each column.

Think of it like

It is like a times table chart. Rows go across, columns go down, and each box has one fact.

Example

A shop owner sees orders in a table. She clicks the Price header to sort from highest to lowest.

Why it matters

It is the fastest way to compare many items field by field.

Definition

A data table shows facts in rows and columns. A header row names each column. It suits many items that share the same fields, like orders with a date, a price and a status. People can read down a column to compare, and often sort it by clicking a header. Numbers line up on the right so they are easy to compare.

Example code

html
<table>
  <thead><tr><th>Order</th><th>Price</th></tr></thead>
  <tbody><tr><td>1042</td><td>$20</td></tr></tbody>
</table>
The th cells name each column, so screen readers can say which column a fact is in.

Try it

Kind
Wool socksSocks$12.00
Water bottleKit$18.00
Running shoesShoes$64.00
Rain jacketCoats$110.00

Numbers line up on the right, so the eye can compare them without reading.

Sort by price. A table is the only one of the three you can read down a column.

Common mistake

Using a table on a phone with ten columns. It scrolls sideways; show fewer columns or switch to a list.

Key takeaways

  1. 1
    Rows and columns. Each item, each field.
  2. 2
    Read down to compare. Sort by the header.
  3. 3
    Numbers to the right. Easy to line up.

Learn it properly