Create an accessible pricing comparison table
Associate each plan value with both HTML headers and verify a member limit with a screen reader.
The problem
The pricing page shows 3 members under Basic. A grid made from generic boxes can deprive assistive technology of the column and row context. Use a simple table that a maintainer can extend.
The tool
WAI describes table structure and headings. The example uses caption, th and scope for a flat matrix that works across writing directions.
The steps
- Use a
captioninside thetablesuch as Monthly plan comparison. Distinguish it from any table of one-off fees. - Use Feature, Basic and Team in the header row. Give each column heading
th scope="col". - In the Member limit row, use
th scope="row"for the label. Put 3 under Basic and 12 under Team, intdcells. - Where an icon represents availability, use words such as Unavailable. Treat a duplicate icon as decoration so it does not repeat the text.
- Review on a narrow screen. If the region scrolls horizontally, check keyboard access and make sure none of the data gets clipped.
- Navigate to 3 with a screen reader and confirm the plan and feature context. Recheck after adding columns or changing page direction.
The real cost
HTML table elements are available without a paid tool. Time depends on whether the existing editor can represent the header relationships and mobile layout.
The free alternative
If the editor cannot output a semantic table, give each plan a headed list and repeat the feature name next to its value.
Notes
- We have not tried these steps ourselves yet. They are based on the official docs. Button names may change. If your interface differs, follow the docs.
- Begin with unmerged headings. Multilevel headers need more explicit associations.
- Verify that the visual order matches the document order when switching to Arabic.
Sources
Did you like this guide?
The weekly newsletter is being prepared. Leave your email and we'll send it when it launches.
We use your email only to send the newsletter. Privacy policy
