Open Pandapip1 opened 1 year ago
Instead of
<subcaption>Status 1</subcaption>
<tbody>
<td>Data 1</td>
all of the following, nesting within tbody
, would make more structural sense to me:
<tbody>
<subcaption>Status 1</subcaption>
<td>Data 1</td>
<tbody>
<caption>Status 1</caption>
<td>Data 1</td>
<tbody>
<h2>Status 1</h2>
<td>Data 1</td>
I like your second option of tbody caption
the best.
Can you use
<tbody>
<tr><th colspan='…' scope='rowgroup'>Status 1</th></tr>
…
</tbody>
instead of a <caption>
or <subcaption>
element?
What problem are you trying to solve?
I have five or six tables that all display the same type of data and are seperated by status. I would like to do this in a single table so that the columns have a consistent width.
What solutions exist today?
You can use an
h2
in between multiple tables. But then the tables have different column widths.How would you solve it?
New
A nested
caption
tag (as a first child of atbody
tag) indicates the caption for the specific tbody. It may have a different default style from acaption
that isn't a child of atbody
:Old
A new HTML tag,
subcaption
, that behaves identically to thecaption
tag, except it can be placed only after thethead
and before the lasttbody
, but any number of times, and might have different default styling. For example:Anything else?
Alternatively, some sort of CSS property could be made to sync columns across tables. I haven't thought about this that much. All I know is that I want to avoid using JS for something this simple.
The presence ot absence of this feature could possibly be used for fingerprinting.