Custom Web Reports: Data Tables Everyone Can Read, with AI Summaries Linked to the Source
Using a fictional branch reporting portal, test that tables associate row and column headers as the W3C Tables Tutorial describes and state units and periods as the project's acceptance criteria require, on phones and with screen readers, and that every sentence of an AI-drafted summary links back to its source cells before a person approves it.
Published by Mentrix Digital ·

Key points
- A data table must let software know which column header and which row header each cell sits under. Bold text or a shaded background that sighted users see is not enough. Buyers can test this themselves by moving cell by cell with a screen reader and listening for both headers.
- In the example portal, the buyer makes it an acceptance criterion that units, period and data source sit in the caption or the headers, not in a paragraph above that readers may skip, and that on phones the table scrolls without its headers disappearing.
- An AI-drafted summary uses only figures the system has already calculated. Every sentence links to the cells it cites, any sentence that cannot point to its source is removed, and the report owner approves before publishing.
The numbers are right, but listeners cannot tell what they belong to
A fictional cold-chain distributor is commissioning a reporting portal where managers of its 12 branches review monthly results. The main table has a row per branch; columns are grouped by month, and under each month sit two sub-columns: cases delivered and spoilage as a percentage. The developer's prototype looks fine on a desktop, but one branch manager uses a screen reader and, on reaching a cell, hears only “4.2”, with no way to tell the month, whether it is cases or a percentage, or which branch it belongs to. On a phone the columns are squeezed until figures overlap, and the AI-drafted summary at the top says “North branch spoilage increased” without saying compared with when. This is a hypothetical scenario, not client work.
The W3C Tables Tutorial explains that accessible tables need markup that identifies header cells and data cells and defines their relationship, so assistive technologies can give users context. Screen readers speak one cell at a time along with its headers, so the reader does not lose their place. The same page cites WCAG success criterion 1.3.1 Info and Relationships and warns that table markup is often lost when converting between formats. This article uses that page as the basis for a test list; passing the list is not the same as a full WCAG audit.
This differs from describing a chart or an image that carries data, where the information in the image has to be summarised in text. The tables here are live data on the page: users must be able to move cell by cell, compare across rows and look up a value themselves. The work is in the structure of the table, not a description standing in for it.
If the data sits in an image or chart rather than a table, describing informative images is covered in the AI-drafted image description guide →
Four kinds of table and the header relationships buyers should test
W3C groups data tables by how complex their headers are, and each kind ties headers to data differently. Buyers do not need to write the code, but they should have the developer state in the specification which kind each portal table is and how its headers will be associated, then test by listening, not only by reading the code:
- One header, such as a delivery note list with a single header row: headers use <th>, data uses <td>. Test by moving down a column; you should hear the column name whenever the column changes.
- Two headers, such as branches as rows and months as columns, with no sub-columns: give column headers scope="col" and the branch name in each row's first cell scope="row". Test by moving across rows; you should hear the branch name whenever the row changes.
- Irregular headers, such as the example table where each month spans two sub-columns: use colgroup or rowgroup with the matching scope values. On the “4.2” cell you should hear the month, “Spoilage %” and the branch.
- Multi-level headers that cannot be tied in a strictly horizontal or vertical way, such as region group headings inside the table: use id and headers to associate each cell with all its headers explicitly. At this level of complexity, first ask whether it can be split into several simpler tables, which are easier to read and to test.
- No layout tables, and no div grids styled to look like tables, unless the developer supplies full table roles and they pass the same listening test.
- Sortable or filterable tables state in text which column the table is sorted by and in which direction, and headers stay correctly associated after re-sorting.
If you need a custom reporting portal with each table's type and header associations written into the specification, see Websites & Landing Pages →
Acceptance criterion: units, period and source in the table
W3C describes a caption as identifying the overall topic of a table and as useful in most situations, but it does not prescribe where units or periods must go. What follows is therefore an acceptance criterion the buyer in this scenario sets, because branch managers compare figures across months and must not mix them up. The criterion: the caption says what the figures are, for whom, for which period and in which unit, for example “Cases delivered and spoilage rate by branch, September–November 2026, data as of 25 November 2026 09:00.” A screen reader user entering the table hears the caption first. Where units differ between columns, put the unit in the column header, not in every cell or in a footnote at the bottom of the page.
Under the same criteria, incomplete figures must look different from zero. If a branch has not yet submitted November data, the cell says “Not reported”, not 0 or a blank, and not a dash that a screen reader may read as “minus” or skip. Rounded figures keep the same number of decimal places within a column. Red text or an arrow that signals a decline needs a text label as well.
- The caption carries the topic, period, unit and data timestamp, and is visible on screen, not hidden for screen readers only.
- Numeric column headers carry their unit in brackets, such as “Delivered (cases)” and “Spoilage (%)”.
- Every table has a source line beneath it, such as the warehouse system and the period close date, with a link to the metric definitions.
- “Not reported”, “Not applicable” and 0 are distinct values, excluded from or included in totals according to written rules.
- Files downloaded from a table, such as PDF or Excel, are tested separately, because W3C warns that table structure is often lost in conversion. If a file does not yet pass, the page says the web table is the authoritative version.
Testing on phones and with assistive technology
Tables with many columns are usually wider than a phone screen. An approach that is easy to test is a horizontally scrolling container that takes its name from the caption and can receive keyboard focus, so people who do not use a mouse can scroll it, with the branch column pinned on the left while scrolling. If the developer proposes turning the table into cards on mobile, every card must label every value, such as “November: spoilage 4.2%”, not a row of unlabelled numbers.
Test with a sample dataset that holds no real branch data but covers the special cases: a branch that has not reported, a genuine 0 and a negative value after an adjustment. Use at least three tool combinations users actually have, such as NVDA with a browser on Windows, VoiceOver with Safari on iPhone and TalkBack with Chrome on Android. The tester answers five questions from the table without looking at the screen and notes what they hear. The table passes only when every check below passes on every combination.
- Moving to any cell with the screen reader's table commands announces every relevant level of row and column header, including the unit.
- The question “What was North branch's spoilage in November?” can be answered correctly without going back to hear the caption again.
- A “Not reported” cell is read as those words, not as zero or “minus”, and is never skipped.
- At 320 pixels wide and 200% zoom no figures overlap, the branch column stays visible while scrolling, and the table container can be scrolled with the keyboard.
- After sorting by spoilage, the sort is announced in text and headers remain correctly associated.
- This script confirms the structure matches the specification. Where possible, have a branch manager who uses a screen reader every day try the real report at least once before launch.
If the report takes minutes to build before the table is ready, announcing that status to screen readers is covered in the background job status guide →
AI-drafted summaries must point back to the cells
Many branch managers read only the summary at the top and close the page, so the summary has to be as accurate as the table. The system calculates every figure with defined formulas, such as the change from the previous month in percentage points, and passes only the calculated figures with their cell IDs to AI to phrase as sentences. AI does not calculate, does not estimate values not yet reported and does not guess causes: it must not write that spoilage rose because a fridge failed if the data does not say so.
Every sentence in the summary links to the cells it cites, with link text that says where it goes, such as “See cell: North branch, November, spoilage”, and every sentence states its comparison period. A sample sentence: “North branch spoilage was 4.2% in November, up 1.5 percentage points from October.” The system checks automatically that every figure in a sentence matches the linked cell; sentences without a link or with a mismatched figure are removed before a reviewer sees them. The report owner then reads the summary against the table and approves it before publication. If AI is unavailable, the report is published without a summary and the table remains the authoritative version.
The summary is ordinary text placed before the table, not the caption, and never a replacement for the table. Only permitted branch-level totals are sent to AI, with no customer names or individual delivery records.
If you want AI to draft report summaries from system-calculated figures, with links to the source cells and an approval step, see Custom AI Solutions for Business →
Dividing work between formulas, AI and approvers in management reports is covered in the AI weekly management report guide →
Acceptance conditions to write into the scope
Write these conditions into the scope before development starts, and accept the work from recorded test results, not from a demo on screen. If any condition fails, that table is not yet delivered:
- Every portal table has a record of its W3C table type and header association method, with listening test results from every agreed tool combination.
- For each main table, the tester answers all five questions correctly without looking at the screen, on every combination.
- Every table has its caption, units, period, data timestamp and source, and “Not reported” is distinct from 0.
- On a phone at 320 pixels wide no figures overlap and row headers stay visible while scrolling.
- AI-drafted summary: in the test set, every published sentence links to its cells and its figures match those cells 100%, and sentences that fail are removed before reaching the approver.
- There is a record of who approved which summary and when, and the report can still be published when AI is unavailable.
- One month after launch, count questions from branches such as “what is this number?” or “which period?” sent to the reporting team. Treat them as a signal that headers or captions are still unclear, not as a measure of WCAG conformance.
If you want figures pulled from warehouse and accounting systems into report tables with data timestamps and sources recorded, see Automation & Business Software →
Sources
- Standards guidance · W3C Web Accessibility Initiative: Tables Tutorial · Accessed


