Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

TBL-001 Published

Key-value table

A table design for a single subject, with the label on the left and the value on the right, read from the top down.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Key-value table

Key-value table UI design (desktop wireframe)

Wireframe (mobile) | Key-value table

Key-value table UI design (mobile wireframe)

What changes on mobile

  1. Label stacked above the value: Side by side the value column gets narrow and addresses wrap into fragments, so the label goes on top.
  2. Table structure unchanged: Only the appearance changes, so screen readers still convey which label goes with which value.

Before you choose this pattern | Key-value table

Good fit

  • You want one subject's information arranged so each item is easy to find
  • About ten items at most, each fitting in one or two lines
  • Company details, product specs, job listings, event overviews: readers come looking for a specific item

Poor fit

  • Several subjects compared on the same items (the <a href="/patterns/en/table-check-compare/">checkmark comparison table</a> or <a href="/patterns/en/table-diff/">difference-highlight table</a> works better)
  • The values are long passages that read better as headings and body text
  • Comparing numbers by size or change (the <a href="/patterns/en/table-numeric/">numeric table</a> works better)

Why this wireframe works | Key-value table

The eye goes straight to the item

When items are buried in prose, readers scan the whole thing to find the address or phone number. Labels line up in the left column, set apart by a background color, so a glance down the column finds the item.

Label-to-value association reaches screen readers

Laid out side by side visually only, the relationship is unclear to screen reader users. Labels are row headers (th scope=”row”), so the structure itself shows which value belongs to which label.

One item per row

Putting the address and phone number in one cell makes them hard to find and fragile to edit. Each row holds one item, with the row height following the content.

On mobile, the label sits above the value

Kept side by side on mobile, the value column narrows and addresses or business descriptions wrap into fragments. On mobile the label stacks above the value, giving the value full width.

Common mistakes | Key-value table

A label column so wide the values wrap

A label column nearly half the width leaves the values narrow and wrapping over many lines. Make the label column just wide enough for the longest label.

Items lumped under “Other” or “Notes”

Information under “Other” cannot be found by readers looking for it. Split it into items or give it a label that says what it is.

Unrelated information forced into the table

Putting prose with no label-value relationship into the table for the sake of appearance muddles its meaning. Use the table only for label-value pairs; write the rest as headings and body text.

The table as an image

An image cannot be enlarged, read aloud or searched, and must be remade with every change. Build the table in HTML.

FAQ | Key-value table

Can a definition list (dl) be used instead?

For a plain set of label-value pairs, a definition list conveys the meaning too. A table treats labels as row headers and is easier to style, which is why this wireframe uses one. Whichever you choose, keep it consistent across the site.

What if there are many items?

Split them into tables of related items, each with a heading. More than about twenty items in one table tends to be hard to search.

Should the phone number be a link?

Show it as text and make it a tel: link where dialing is possible, so people can call directly. Use the same treatment on desktop and mobile.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published