THE GITHTML FIELD GUIDE
When to split a table with multiple header levels
Split a complex table when readers can answer the intended questions more easily from several clearly titled simpler tables. If the matrix must remain intact, explicitly associate cells with all relevant headers and test navigation. Simplification must preserve comparison meaning, not merely remove columns that happen to be inconvenient on a phone.
Understand the access barrier
A matrix combining region, environment, month, and metric can require readers to remember several header layers at once. Correct markup can express those relationships, but it does not automatically make the comparison easy.
Use a deliberate document pattern
Identify the primary comparison and separate unrelated dimensions. Repeat necessary units and scope in each smaller table. If readers must compare across the split, provide a concise summary or retain an accessible full table as additional evidence.
- Name the question each table is intended to answer.
- Preserve units, scope, and comparison context when splitting the matrix.
- Use explicit header associations when retaining genuinely multilevel relationships.
Example split:
Table A: Production latency by region
Table B: Staging latency by region
Both state the same observation period and unit.Check the actual reading experience
Ask a reader to locate one specific value and explain every dimension attached to it. An answer missing the environment or period indicates lost context.
Choose a split that preserves comparison
Suppose a performance matrix has regions down the side, production and staging across the top, and three monthly columns under each environment. If the main question is which production region is slowest this month, a dedicated production table can reduce memory burden. If the main question is how production differs from staging for each region, splitting by environment may make the essential comparison harder. Let the reader’s question determine the split.
Each resulting table needs enough context to stand alone: observation period, unit, aggregation method, and any exclusions that affect interpretation. Repeating a short note is better than making readers remember that only the first table excluded failed requests. Keep row order consistent across comparable tables and avoid silently changing scales or rounding. A summary sentence can explain the principal relationship, while the detailed tables retain the evidence needed to check it.
If the full matrix remains necessary, associate each value with every relevant header, using unique header identifiers and headers attributes where appropriate for the structure. Do not assume visual spanning alone establishes all relationships. Test a cell in the middle of a grouped region, where missing associations are less obvious than at the first row. After splitting, verify totals and missing-value markers against the original dataset so the transformation does not drop a category. Keep an accessible full representation when readers need cross-dimension analysis, but label it clearly as an additional detailed view rather than forcing everyone through the largest matrix first.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.