Logo

dev-resources.site

for different kinds of informations.

Building Accessible Data Tables: Best Practices

Published at
6/15/2024
Categories
articles
a11y
webaccessibility
Author
samuel_enyi_0f46ef94a1918
Categories
3 categories in total
articles
open
a11y
open
webaccessibility
open
Author
25 person written this
samuel_enyi_0f46ef94a1918
open
Building Accessible Data Tables: Best Practices

E-commerce: Accessible Data Tables.
We evaluated several e-commerce sites and found that most of them feature data tables. This is likely because data tables effectively organize and present large amounts of information clearly. Notably, over 80% of these data tables were not properly implemented using accessible coding best practices. Learn more about accessible data tables […]

The post Building Accessible Data Tables: Best Practices appeared first on Accessmeter LLC.

Tables with Both Column & Row headers
Failing Example:
Code:
The following code snippet shows a data table with both row and column headers:

Quarterly Sales Data
Week 1 Week 2 Week 3 Week 4 Week 5
1st Quarter 100 150 80 200 530
2nd Quarter 120 130 100 180 530
3rd Quarter 80 95 70 150 395
4th Quarter 90 110 85 160 445

Result:
Quarterly Sales Data
Week 1 Week 2 Week 3 Week 4 Week 5
1st Quarter 100 150 80 200 530
2nd Quarter 120 130 100 180 530
3rd Quarter 80 95 70 150 395
4th Quarter 90 110 85 160 445
This table is a failing example because it lacks

elements to define the row headers. While screen readers will correctly associate each data cell with its column headers, they will not properly associate the data cells with their corresponding row headers.

Passing Example
Code:
The following code snippet shows a data table with both row and column headers:

Quarterly Sales Data
Week 1 Week 2 Week 3 Week 4 Week 5
1st Quarter 100 150 80 200 530
2nd Quarter 120 130 100 180 530
3rd Quarter 80 95 70 150 395
4th Quarter 90 110 85 160 445

Result:

Quarterly Sales Data
Week 1 Week 2 Week 3 Week 4 Week 5
1st Quarter 100 150 80 200 530
2nd Quarter 120 130 100 180 530
3rd Quarter 80 95 70 150 395
4th Quarter 90 110 85 160 445
This table is a passing example because there is a

element to define the row and column headers and a element to define the table body. Screen readers will properly associate each data cell with its appropriate row and column headers.

Let’s Wrap It Up
The most common errors we often find when testing websites featuring data tables are improper associations of each cell with their corresponding column and row headers. Users with disabilities may find these kinds of tables difficult to comprehend.

Since most charts and graphs used to convey data on e-commerce sites can be made accessible by providing text alternatives in the form of data tables, it becomes very necessary to make these tables accessible.
Leave Questions below, I will get to it in a moment.

webaccessibility Article's
30 articles in total
Favicon
Web Accessibility Compliance: How to Meet WCAG Standards and Build Inclusive Websites
Favicon
Understanding Semantic HTML: The Backbone of Meaningful Web Development
Favicon
HTML Accessibility
Favicon
Best Practices for Building Email-Friendly Web Applications
Favicon
15 Most Common Web Accessibility Issues (+Solutions)
Favicon
Supercharging Your Web Development Services with NLP
Favicon
Top 10 Eye-Opening Facts About Web Accessibility That Will Change Your Perspective
Favicon
Web Accessibility Check: Tools and Techniques for an Inclusive Website
Favicon
Should we use AI tools to generate alt text? 
Favicon
Web Accessibility: Making Digital Services Inclusive for All
Favicon
Web: Your Accessibility FAQ Guide
Favicon
Building Accessible Data Tables: Best Practices
Favicon
Accessibility Breakdown | Dynamic Content
Favicon
Web Accessibility - Designing for All
Favicon
Designing for Inclusivity: Creating Accessible Web Experiences for All
Favicon
Web Accessibility Matters
Favicon
Growing My Skill in Web Accessibility
Favicon
Using Captcha Solvers to Improve Web Accessibility & Work Productivity
Favicon
How to avoid “image of” or “screenshot of” in our alt text
Favicon
Beyond WCAG conformance for inclusive web experiences
Favicon
A Beginner's Guide to ARIA: Making Your Web Content Accessible
Favicon
Who's responsible for accessibility in software development?
Favicon
Learning Web Accessibility: A Practical Approach
Favicon
A short guide to web accessibility
Favicon
Accessibility Statement | Templates for Websites
Favicon
Website Accessibility & Usability Checklist
Favicon
On-Page SEO & Accessibility | Website Project Management
Favicon
What every web developer should know about Dyslexia?
Favicon
Return On Investment (ROI) Of Accessibility
Favicon
What Is Website WCAG Conformance?

Featured ones: