Question About Tables and How to make them more Accessible

14 views
Skip to first unread message

Carlos Montalvo

unread,
Mar 31, 2026, 7:16:11 PMMar 31
to PreTeXt accessibility
Hi All,

Another question I've had is about tables. I used to generate many tables with rows that are in different colors to highlight different information. For example, a truth table could be green for True and red for False. I noticed in 


The option for @color is set to 'p' which apparently means potential so someone has thought about it but I guess it hasn't been implemented. Obviously for accessibility, colors don't really matter.

So what's the current protocol for making a table more accessible instead of using colors? Is it typical for people to use a combination of <em> <alert> <b> and <hline>?

-C.

Rob Beezer

unread,
Apr 1, 2026, 8:29:29 PMApr 1
to pretex...@googlegroups.com
Dear Carlos,

I'm not sure if coloring rows of a table is readability or accessibility.

We try, and I think we might be able to do better, to make tables that screen
readers can understand and navigate. That is accessibility. But I'm no
authority, which is why we have this list.

That said, there has been no work on colors. It gets complicated. We have the
potential for many color schemes for HTML, and dark mode for each. What is to
stop a color from beiong washed out or not providing good contrast? Maybe
table_color_1, table_color_2, etc, and color themes need to set them? Or maybe
just alternating colors, like green/white fan-folded computer printout paper?
(Showing my age.) Grayscale for PDF meant to be printed? Perhaps alternating,
3-cycle, 4-cycle as options would be consistent with our approach?

I'll resist taking on an attitude, since you are new around here. If <b> means
bold, we don't have that. And never will. We are all about semantic markup. ;-)

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt accessibility" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-a11y...@googlegroups.com <mailto:pretext-
> a11y+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> a11y/7ec0fbe8-3386-4188-ba79-29040d22d203n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-a11y/7ec0fbe8-3386-4188-
> ba79-29040d22d203n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Carlos Montalvo

unread,
Apr 2, 2026, 1:48:51 PMApr 2
to PreTeXt accessibility
The specific color doesn't actually bother me other than just having a way to emphasize a particular row. Something like

<row style="emphasize"> or <row style="highlight">

and then have PreTeXt figure out the color based on the theme with some defaults. Green/white fan-fold is great (oddly enough I used to code in Fortran77 and my dad showed me his punch cards), gray-scale is also fine so long as there are some defaults we can all agree on.

My apologies. I meant <term>, my brain went back to my pre-2000s HTML coding days with <b> (showing my age).

This isn't a critical issue so if no work has been done on colors that's fine but again if there's a way I can help I'm happy to get involved. 

-C.

Reply all
Reply to author
Forward
0 new messages