Sub topic 10
Designing a readable table
This chapter assumes you already know when a table is the right choice, as covered in the previous chapter. It focuses on how to build one so a reader can scan it quickly. You should be comfortable writing basic Markdown or using word-processor styles.
What a readable table needs
A table works when a reader can answer a question by finding one row and one column. Four design choices decide whether that works: the header row, the column order, the alignment, and the cell content.
Name every column in a header row
Each column needs a header that says what the values below it are. Include the unit in the header, not in every cell. A header such as "Storage" is weaker than "Storage (GB)" if every value is in gigabytes.
A header row also matters for assistive technology. Screen readers use it to announce which column a cell belongs to, so a table without one is hard to follow by ear.
Order columns and rows deliberately
Put the column that identifies each row first, because readers use it to find their place. Then order the remaining columns by how often readers need them, with the most important on the left.
Order rows by a rule the reader can predict. Sort alphabetically for lookup tables, by number for rankings, and by time for schedules. If the rows have no natural order, put the most commonly needed ones first.
Align by content type
Left-align text. Right-align numbers so the digits line up and the reader can compare sizes at a glance. In Markdown, a colon in the separator row sets the alignment.
| Plan | Storage | Users | Price per month |
|:------|--------:|------:|----------------:|
| Basic | 10 GB | 1 | $5 |
| Team | 100 GB | 10 | $20 |
| Scale | 1 TB | 100 | $90 |A colon on the left (:---) means left-aligned. A colon on the right (---:) means right-aligned. The plan names and prices here are made-up sample data.
Keep cells short and self-explanatory
A cell should hold a word, a number, or a short phrase. If a cell needs a full sentence, the content probably belongs in a paragraph or a list instead.
Avoid empty cells. A blank cell leaves the reader unsure whether the value is zero, unknown, or not applicable. Write "None" or "Not available" so the meaning is clear.
Repeat the same wording for the same idea. If one cell says "Yes", do not use "Included" in the next. Readers treat different words as different meanings.
Keep the table small enough to scan
Tables get hard to read as they grow. As a rough guide, aim for no more than five or six columns. If you need more, check whether you are combining two tables, or whether some columns could be dropped because few readers need them.
Introduce the table with a sentence that says what it shows and what the reader should notice. Do not rely on the table to speak for itself.
Before and after
The first version below has a vague header, mixed units, and blank cells. The second fixes each problem.
| Item | Info | Other |
|------|------|-------|
| Basic | 10 gigabytes | |
| Team | 100GB | $20 || Plan | Storage (GB) | Price per month |
|:------|-------------:|----------------:|
| Basic | 10 | $5 |
| Team | 100 | $20 |Common mistakes
- Using a table for a single column of items, which a list handles better.
- Leaving the header row out or filling it with generic labels such as "Info".
- Merging cells or nesting tables, which many screen readers and Markdown renderers handle poorly.
- Using a table to lay out a page, rather than to compare values.
Exercise
A table has the columns "Name", "Details", and "Notes". The Details cells hold three-sentence descriptions, and several Notes cells are empty. List three changes that would make it easier to skim.
Show answer
First, replace the generic headers with specific ones, such as "Feature", "Limit (per user)", and "Available on". Second, shorten each cell to a word, number, or short phrase, and move the longer descriptions into paragraphs below the table. Third, fill the empty cells with "None" or "Not available", or drop the Notes column if few rows use it.
Exercise
A price column contains the values $5, $20, and $90. Should it be left-aligned or right-aligned, and why?
Show answer
Right-aligned. Right alignment lines up the digits, so the reader can compare the magnitudes of the numbers at a glance.