Found this content helpful? Log in or sign up to leave a like!

Tables in Canvas Pages

Jump to solution
RobertGibson
Community Participant

Odd thing...

We have some Canvas generated tables on a page. We save them. We look at them as a student. We put the cursor in the first cell block. We then try to tab from cell to cell to test keyboard accessible functionality. But rather than tabbing cell to cell, it jumps us to the Next Page button (skipping the entire table). We've tried this repeatedly. It's not an image. It's a table.

We're confused. The only way to 'read' the table is using Immersive Reader.

What is going on?

Labels (1)
2 Solutions
jenn_stevens
Community Contributor

Except @RobertGibson says that this is a data table, NOT a layout table - so this advice would be the opposite of accessibility in this case. His particular question is about keyboard navigation, but for anyone else who happens by, following the advice to use <divs> for a data table would make it inaccessible to anyone who uses a screen reader. 

I would strongly recommend using semantic html for data tables, like Canvas uses. To quote WHATWG, "Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors."

View solution in original post

LauraF1
Community Participant

To support what  Jenn posted; the semantic elements are the <table>, <th>, and <td> elements. CSS class names are not used for accessibility.

 

Laura

 

View solution in original post