Sub topic 9
When a table beats a list
This chapter assumes you have written work documents such as reports, emails, or documentation. It also assumes you know the basics of lists from earlier chapters. You do not need to know Markdown tables already, because the chapter shows the syntax.
A list shows items in one dimension. A table shows items in two. When your reader needs to compare several items across the same attributes, a table lets them do it by scanning along a row or down a column. A list makes them hold facts in memory while they read.
The core test: items and attributes
Ask two questions about your content.
- Are there several items, such as plans, tools, or error codes?
- Does each item have the same set of attributes, such as price, limit, or owner?
If both answers are yes, you have a grid, and a table is likely the best form. If you have items with no shared attributes, a list fits better. If you have one item with many attributes, a short list or a paragraph fits better.
Here is the same content written as a list.
- The Basic plan includes 10 GB of storage and 1 user, and costs $5 per month.
- The Team plan includes 100 GB of storage and 10 users, and costs $20 per month.
- The Scale plan includes 1 TB of storage and 100 users, and costs $90 per month.Every item repeats the same sentence frame. The reader has to skip past the repeated words to find the numbers, and comparing storage across plans means reading three separate lines. Here is the same content as a table.
| Plan | Storage | Users | Price per month |
|:------|--------:|------:|----------------:|
| Basic | 10 GB | 1 | $5 |
| Team | 100 GB | 10 | $20 |
| Scale | 1 TB | 100 | $90 |The header row names each attribute once. Each cell holds only the value. The reader can find the cheapest plan or the largest storage limit by looking down a single column.
What readers do with a table
The reason tables work is the kind of reading they support. People use tables for three tasks.
- Look-up: find one value, such as the price of the Team plan.
- Comparison: judge two or more items against one attribute, such as which plan allows the most users.
- Scanning for exceptions: spot the row that differs from the rest, such as the only plan without support.
A list supports the first task only when it is short. It supports the second and third poorly, because the values sit in different places on each line.
If your reader will do none of these tasks, a table is probably the wrong choice. A table that nobody looks things up in or compares across is just a list with borders.
Signals that content wants to be a table
Look for these signs in a draft.
- A paragraph or list repeats the same sentence pattern for each item.
- The same words appear in every item, such as "supports", "requires", or "costs".
- You find yourself writing "whereas", "compared with", or "while the other" to contrast items.
- Readers ask questions like "which one has X?" or "what is the limit for Y?"
Here is a paragraph that shows these signs.
The staging server runs on port 8081 and is restarted nightly, while the production server runs on port 443 and is never restarted without approval, and the test server runs on port 8082 and is restarted on every commit.The reader has to build a mental grid to answer "which servers restart nightly?" Put the grid on the page instead.
| Server | Port | Restart policy |
|:-----------|-----:|:----------------------|
| Staging | 8081 | Nightly |
| Production | 443 | Only with approval |
| Test | 8082 | On every commit |When a list is still the better choice
A table is not always better than a list. Choose a list in these cases.
- The items have no shared attributes. A list of unrelated reminders has no columns to name.
- The order matters and the items are steps. A numbered list shows sequence. A table would hide it.
- Each item needs a sentence or more. Long text in cells makes rows tall and hard to scan.
- There are only one or two attributes. A two-column table of term and meaning is often better as a definition-style list.
- The content is short. Two items with two attributes each can be one clear sentence.
A common mistake is putting step-by-step instructions in a table with a "Step" column and an "Action" column. The numbers in the first column do what a numbered list already does, and the table adds visual weight with no gain.
Choosing the columns and the rows
Once you decide on a table, decide what goes on each axis. The usual rule is that rows are the items being compared and columns are the attributes. A reader who looks down a column compares like with like, so each column should hold one kind of value.
Consider the following guidelines.
- Put the item names in the first column. The reader finds the row by its name, then reads across.
- Order the columns by importance. Put the attribute that most readers need next to the item name.
- Keep the table narrow. Four to six columns fit most screens and printed pages. If you need more, split the table or drop attributes that few readers need.
- Keep one kind of value per column. Do not mix numbers and prose in one column. If a column holds "10 GB", "Unlimited", and "Ask sales", the reader cannot compare it quickly.
When a table has too many columns, you can often turn it on its side, so the attributes become rows and the items become columns. This works when you have few items and many attributes, as in a comparison of two products.
| Attribute | Product A | Product B |
|:-----------------|:------------|:------------|
| Setup time | 10 minutes | 2 hours |
| Offline mode | Yes | No |
| Support hours | 24/7 | Weekdays |
| Price per month | $12 | $8 |Edge cases
Missing values
Some items will not have a value for every attribute. Do not leave the cell empty, because an empty cell can mean "none", "unknown", or "forgot to fill in". Write what you mean, such as "None", "Not applicable", or "Unknown".
Cells that need explanation
If one cell needs a long note, do not stretch the table. Put a short value in the cell and explain below the table, or link to a section that explains it. Keep the table scannable and move detail out of it.
Grouped or nested data
Two levels of grouping, such as regions that each contain several offices, do not fit a simple table well. Markdown tables cannot merge cells. Either repeat the group name in each row, or use one table per group under a heading that names the group. Repeating the name is clearer for look-up. Separate tables are clearer when the groups are large.
Very long tables
A table with fifty rows is a reference, not something to skim. Sort it in a way that matches how readers look things up, such as alphabetically by name or by error code. Consider whether the reader needs a search function or an index instead.
Tables introduced without context
A table that appears with no lead-in forces the reader to work out why it is there. Add one sentence before the table that says what it compares and what the reader should take from it.
The three plans differ mainly in storage and user limits.
| Plan | Storage | Users |
|:------|--------:|------:|
| Basic | 10 GB | 1 |
| Team | 100 GB | 10 |
| Scale | 1 TB | 100 |Comparing the three forms
The table below summarizes when each form works best.
| Form | Best for | Reader task | Weakness |
|---|---|---|---|
| Paragraph | Explanation, reasoning, a single item | Reading in full | Hard to scan for facts |
| Bulleted list | Unordered items without shared attributes | Seeing all the options | Poor for comparing attributes |
| Numbered list | Steps in a fixed order | Following a procedure | Implies order where none exists |
| Table | Several items with the same attributes | Look-up and comparison | Costly to write, poor for prose |
Common errors
- A table with one real column. If the second column only repeats or lightly rewords the first, use a list.
- A table of sentences. If cells hold full sentences, the content is prose. Use headings and paragraphs.
- Inconsistent units. If one row gives storage in GB and another in MB, the reader cannot compare. Use one unit per column and put it in the header.
- Unnamed columns. Each column needs a header that says what the values mean. "Value" and "Info" are too vague.
- Layout tables. Do not use a table to position text or images side by side. Tables are for data, and assistive technology treats them as data.
Practice
Exercise
A draft says: "The Standard shipping option takes 5 to 7 days and costs $4. The Express option takes 2 days and costs $12. The Overnight option takes 1 day and costs $25." Should this be a paragraph, a list, or a table? Give a reason, then name the columns.
Show answer
A table. There are three items that each have the same attributes, and a reader will want to compare cost and speed. Use the columns Option, Delivery time, and Cost. The rows are Standard (5 to 7 days, $4), Express (2 days, $12), and Overnight (1 day, $25).
Exercise
A document has a two-column table with the headers "Step" and "Action". The Step column contains the numbers 1 to 6, and each Action cell holds one instruction. What is wrong with this table, and what should replace it?
Show answer
The content is a sequence, not a comparison of items across attributes. The Step column only numbers the rows, which a numbered list does already. Replace the table with a numbered list of six items, each starting with a verb.
Exercise
A table has a column called "Support" with the values "Email", "24/7 phone and chat", "Ask us", and "-". Name two problems and suggest a fix.
Show answer
The column mixes kinds of values, so the reader cannot compare it quickly. The "-" is ambiguous because it could mean "none" or "unknown". A fix is to split support into separate columns such as Email, Phone, and Chat with Yes or No in each, and to write "None" or "Not offered" instead of a dash.