[accessibility] Designating header cells in tables

Jason White jason at jasonjgw.net
Fri Apr 1 16:22:05 CEST 2022


I’ve searched for this on the Web and in the Lwarp package documentation (which is the HTML conversion tool that I’m using for a project), but I haven’t been able to find an answer so far. Also, I may have asked about this before – apologies for the duplication if so.

Is there a generally accepted LaTeX convention for specifying which cells in a table are header cells (e.g., in tabular, tabularx, tabulary, etc., environments)?

The problem is that (at least with the Lwarp package), all of the cells, whether header or body, are transformed into HTML TD elements. Some browsers (I’ve tested with Chrome and Safari) then appear to treat the table as a layout table, and the table structure is not exposed to the screen reader at all. Hence I can’t navigate it as a table using a screen reader’s table navigation commands.

I can correct this by manually editing the HTML and changing the appropriate TD elements to TH elements. Obviously, I would rather not have to edit the output, or to write a script to perform substitutions on the HTML file.

Is there a better solution?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/accessibility/attachments/20220401/a75de5ab/attachment.html>


More information about the accessibility mailing list.