Tables for prices and opening hours
By the end of this step: you will be able to check that your price list or opening hours table has real headings, and know when not to use a table at all.
The short version
- A table is for data that sits in rows and columns, like prices or opening hours.
- The top row (or first column) must be marked as headings in the code.
- A caption tells people what the table is about.
- Don't use a table just to line things up.
When a table is the right tool
A table is a grid of rows and columns. W3C says data tables are used to organise data with a logical relationship in grids.[1] A price list is a good example. So are opening hours.
Each item in the grid is called a cell. A person who can see the page glances at the top of a column to know what a number means. A person using a screen reader (a program that reads the page aloud) can't glance. The code has to tell the screen reader.
Mark the headings as headings
Here's the key rule. W3C says header cells must be marked up with <th>, and data cells with <td>, to make tables accessible.[1] Those two bits of code are called tags. They are labels in the page's code.
Why does it matter? Assistive technologies use this information to provide context to users.[1] So when someone lands on "$18", the screen reader can say which service and which column it belongs to.
A common mistake is to make the top row look like headings by making the text bold. It looks right, but the code says nothing. The screen reader just reads a pile of words and numbers.
Keep it simple
W3C has a tutorial page for tables with one simple header, either across the top or down the side.[2] That covers most small business tables. Opening hours have the day down the side. A price list has the headings across the top.
Tables with headings on both the top and the side are harder. If you have one, ask your web designer for help. Often you can split it into two small tables instead.
Add a caption
A caption is a short title for the table. W3C says captions and summaries provide information that can help users find, navigate and understand tables.[3] "Opening hours" or "Haircut prices" is plenty.
When not to use a table
W3C says tables should not be used for layout purposes.[4] It says to use Cascading Style Sheets (CSS) for layout instead.[4] CSS is the code that controls how a page looks. Is a menu or photo gallery sitting in a table just to line it up? Ask your designer to change it.
A table is also a poor fit for a list of things with no grid, like a few tips. Use a plain list instead.
Try it on your site
- Find one table on your site. A price list or opening hours page is a good start.
- Ask: is it data in rows and columns? If not, a list is better.
- Check the headings. Ask your web designer or website builder's help team: "Are the heading cells marked as header cells?"
- Check there is a short caption above or inside the table.
- If your site builder has a table tool, look for an option like "header row" and switch it on.
- View the page on your phone. If the table runs off the edge, tell your designer.
Sources
- Tables Tutorial, W3C Web Accessibility Initiative (accessed 2026-11-04)
- Tables with One Header, W3C Web Accessibility Initiative (accessed 2026-11-04)
- Caption & Summary, W3C Web Accessibility Initiative (accessed 2026-11-04)
- Tips and Tricks (Tables), W3C Web Accessibility Initiative (accessed 2026-11-04)