WebAIM - Web Accessibility In Mind

E-mail List Archives

table cells, th-mapping

for

From: Miriam Fukushima
Date: Mar 16, 2021 4:44AM


Hello everyone,


thank you for any help in advance.
I have a table in which every data cell has multiple headers from
columns as well as rows.

The table head from the row contains a heading as well as text.

I can't change anything about the structure itself.
When mapping the headers to the data cells, is it feasible to have the
th-element structured like this:
<th>
<p id="thid"><strong> heading text </strong></p>
<p> paragraph text </p>
</th>

and then have the data cells have the ID only of the first paragraph in
the headers-attribute?

Or any other ideas how I could go about mapping that table header cell
to the data cells without the whole content of the table header cell
being referred to all the time?

Thank you very much for any input.

Kind regards, Miriam.