Tables (ePistolarium)
Tables are encoded with the table
, row
, and cell
elements.
-
table
contains text displayed in tabular form, in rows and columns.
-
row
contains one row of a table.
-
cell
contains one cell of a table.
Each row in a table should have the same number of columns. This is usually the number of cells in a row. However, if a cell
element has a rows
attribute, its value indicates the number of columns occupied by this cell.
If a row contains a labeling of the columns in the table, this is accomplished by adding a role="header"
attribute to the cells in that row.
Example: https://correspondence.huygens.knaw.nl/documents/112c7a3a-f4e3-42db-b3d3-5c62a1997ebf (simple table)
<p>284 cujus partes aliquotae sunt 220, et vice versa. <table> <row> <cell>18416</cell> <cell>17296</cell> </row> <row> <cell>9437056</cell> <cell>9363584</cell> </row> </table></p>
Example: https://correspondence.huygens.knaw.nl/documents/38c1e8ea-d1a0-456a-ad99-bfa84e571f9f (table with cells of varying width)
<table> <row> <cell/> <cell>Divini</cell> <cell>1647</cell> <cell>32¼</cell> <cell>-</cell> <cell>14</cell> <cell/> </row> <row> <cell cols="2"/> <cell>1648</cell> <cell>ut 274</cell> <cell>-</cell> <cell>119</cell> <cell/> </row> <row> <cell cols="3"/> <cell>14</cell> <cell cols="3"/> </row> ... </table>
Example: https://correspondence.huygens.knaw.nl/documents/49284c9e-2891-4216-900a-fce5c97918cc (table with heading)
<table> <row> <cell role="header">Then</cell> <cell role="header">Diameter.</cell> <cell role="header">Superficies.</cell> <cell role="header">Solidity.</cell> <cell role="header">Weight.</cell></row> <row> <cell>AB</cell> <cell>1</cell> <cell>1</cell> <cell>1</cell> <cell>1</cell></row> <row> <cell>CD</cell> <cell>2</cell> <cell>4</cell> <cell>8</cell> <cell>4</cell></row> <row> ... </table>