Request a demo

Accessibility

Accessible tables for municipal websites: what staff should check

Help municipal staff publish accessible tables with clear headers, captions and readable data, then check the finished page on phones and with a screen reader.

On this page

Accessible tables for municipal websites preserve the connection between each value and its row or column heading. Use the website editor's table controls to identify headers, give the table a clear caption and check the published result. Bold labels and visible borders alone do not supply the structure a screen reader needs. W3C's table tutorial (opens in a new tab) explains those relationships.

A data table arranges related information in rows and columns. Staff can use these checks when posting a department directory, a schedule or figures from a public report. The checks support accessible publishing; they do not replace a full WCAG 2.1 AA evaluation.

When should municipal staff use a table?

Use a table when residents need to compare related information across rows or columns. If the content is simply a set of instructions, headings and a list will usually be easier to maintain. Avoid using a table to place unrelated text into side-by-side boxes.

The City of Portland's content guidance (opens in a new tab) treats tables as structured information that needs relationships defined in HTML. A picture of a spreadsheet cannot provide those navigable cells. Request the source data before building the page.

If the table accompanies a graphic, keep its categories, units and reporting period consistent with the graphic. The municipal chart publishing checklist covers that comparison and the written explanation residents may need alongside the figures.

What makes municipal website table headers accessible?

Header cells tell residents what the data means. Mark them as headers using the editor's table settings. Making a cell bold changes its appearance, but does not necessarily identify it as a header in the page code.

A column header describes the cells below it. A row header describes the cells across from it. For a department directory, the top row might identify the department and telephone columns, while each department name identifies its row. Choose the labels that explain the actual information being published.

For the provider, W3C's two-header examples (opens in a new tab) show header cells marked with th and their direction defined with scope="col" or scope="row". Staff should ask which editor controls produce those relationships and request a demonstration on the finished page.

This work supports WCAG Success Criterion 1.3.1, Info and Relationships (opens in a new tab): information and relationships conveyed visually must also be programmatically determinable or available in text. A border or shaded row cannot establish the relationship by itself.

What should the caption and labels explain?

Give the table a short, specific name. Use the editor's caption field when available, and confirm that it creates a caption attached to the table. A caption helps someone browsing tables with a screen reader identify which one to read. W3C's caption guidance (opens in a new tab) explains the distinction between naming a table and describing a complex structure.

Before copying the data, ask the supplying department to confirm:

  • What period the information covers and whether it is current, proposed or historical.
  • Which units belong to the values, including whether a figure is a count or a percentage.
  • What blank cells, abbreviations and symbols mean.
  • Who will approve corrections and the next update.

Put necessary explanations near the table. If a blank means information is unavailable, say so; do not replace it with zero to make the table look complete. Preserve the meaning of the approved source.

How should staff handle a complicated table?

Start by asking whether the information can be divided into smaller tables with clear subjects. Keep the relationships residents need for comparison. Splitting a table should not separate a value from the conditions or notes that explain it.

W3C's table tips (opens in a new tab) recommend simpler tables and separate cells for separate pieces of data. Do not press Enter repeatedly inside a cell to imitate several rows. When text grows or wraps differently, those apparent rows can stop lining up.

Merged headings and nested groups need a technical review. Send the provider the source document and explain what residents should be able to compare. Ask whether the editor can preserve the required header relationships through later staff updates. If it cannot, agree on a simpler presentation before publishing.

Can an accessible table scroll sideways on a phone?

Sometimes. WCAG's reflow guidance (opens in a new tab) allows an exception for content that needs a two-dimensional layout for meaning or use, including qualifying data tables. That exception does not apply automatically to the surrounding page or to every cell's text.

Ask the provider to contain any necessary sideways scrolling within the table area. The page's headings and paragraphs should still fit the narrow view. Test enlarged text as well as a phone-sized screen, and make sure the final column is reachable rather than clipped.

If the table changes into stacked cards on small screens, check that each value retains its label and the relationships remain available to assistive technology. W3C's responsive table advice (opens in a new tab) specifically calls for preserving structure across formats.

Use the municipal keyboard checklist to review links and any sorting or filtering controls. Ask the provider to check keyboard access to a scrolling table area too.

What should staff verify before an update goes live?

Check the page preview against the approved source, then ask someone familiar with screen reader testing to verify the table relationships. Have the reviewer identify which row and column describe a value while moving between cells.

Use this review sequence:

  1. Confirm the caption, reporting period and labels match the new content.
  2. Compare each row with the source, including notes and missing values.
  3. Check the first and last columns on a narrow screen and with enlarged text.
  4. Verify that any links and interactive controls can be used with a keyboard.
  5. Have the reviewer move between cells with a screen reader and identify the relevant headers, especially where the structure changes.
  6. Record the preview URL, the checks completed and any repair needed before release. After publishing, open the public page to confirm that the reviewed version appears.

When reporting a problem, name the affected table and row. Send the provider the expected relationship, such as which department a telephone number belongs to, along with what the reviewer encountered. Keep the approved source with the publishing request so repairs can be checked for accuracy.

Add this review to routine municipal website accessibility updates. Begin with one frequently used table and save the working editor settings for staff. Recheck the structure whenever an update adds columns or changes the headings.

Frequently asked questions

Does every accessible table need a caption?

A caption is a useful default for identifying a table, especially when a page has several. It is not a universal WCAG requirement in every case. W3C's caption guidance (opens in a new tab) explains that captions help readers find and understand tables. Ask the provider whether the editor's caption field produces an HTML caption connected to the table, rather than a separate line of text.

Can we copy a table from a spreadsheet into the website editor?

Check the result before publishing. A successful paste does not prove that header relationships survived. W3C's table tutorial (opens in a new tab) warns that table markup can be lost when content changes formats. Use the editor's table controls to check headers, then compare the published rows and values with the approved source. Ask for technical help if the editor cannot preserve the structure.

Are merged cells always an accessibility failure?

No. Some complex tables can use merged cells with correctly defined header relationships. W3C's irregular-header guidance (opens in a new tab) explains how row and column groups can be marked up. For routine staff updates, simpler tables are easier to maintain. Ask the provider to review a complex table before treating its appearance as evidence that it works with a screen reader.

Does a table that looks good on a phone pass accessibility checks?

A phone review checks only part of the experience. The table still needs meaningful header relationships, and residents must be able to use any links, scrolling areas or controls. Portland's web content guidance (opens in a new tab) explains why visual cues alone are insufficient. Combine visual review with structural and assistive-technology testing; no single check proves the whole page meets WCAG.

Help residents read the information you publish.

See Muniway's accessibility services for local government websites and content.

Explore website accessibility