Documentation
Elements
- <a>
- <aside>
- <assessment>
- <author>
- <backcover>
- <blockquote>
- <body>
- <bodymatter>
- <caption>
- <code>
- <cover>
- <dd>
- <dl>
- <document>
- <dt>
- <em>
- <figure>
- <figureGroup>
- <frame>
- <frontcover>
- <frontmatter>
- <hd>
- <img>
- <input>
- <jacketcopy>
- <legend>
- <li>
- <line>
- <linegroup>
- <list>
- <meta>
- <metadata>
- <note>
- <noteRef>
- <number>
- <p>
- <page>
- <poem>
- <pullquote>
- <rearmatter>
- <section>
- <source>
- <span>
- <sub>
- <subtitle>
- <sup>
- <table>
- <tbody>
- <td>
- <tfoot>
- <th>
- <thead>
- <title>
- <tr>
<table>
-
Date:17/08/2022
-
Modified:28/04/2025
-
Category:Elements
The <table> element contains cells with data, structured in rows and columns.
Children elements
| Element | Explanation | Required |
|---|---|---|
<title> | Defines the title of a table. See title. | No |
<thead> | Container element for table head. Only use this element when a table row has a visual head. See thead. | No |
<tbody> | Defines the body of a table Only use this element when thead or tfoot is used to contain the cells that comprise the body of a table’s (main) data. See tbody. | No |
<tfoot> | Defines the footer of a table Only use this element in conjunction with See tfoot. | No |
<tr> | Defines a table row. See tr. | Yes |
<td> | Defines a table data. See td. | Yes |
<source> | Defines the source of a table. See source. | No |
Examples
Table with title
<table>
<thead>
<tr>
<th>metaal</th>
<th>massagetal</th>
<th>dichtheid</th>
</tr>
<thead>
<tbody>
<tr>
<td>aluminium</td>
<td>27,0</td>
<td>2,70</td>
</tr>
<tr>
<td>titanium</td>
<td>47,9</td>
<td>4,51</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tbody>
<title>Figuur 5</title>
</table>Table with title and source
<table>
<title>TABLE 1-5 Factors Contributing to Deaths in the United States</title>
<thead>
<tr>
<th>Factors</th>
<th>Percentage of Detahs</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tabacco</td>
<td>18</td>
</tr>
<tr>
<td>Poor diet/inactivity</td>
<td>15</td>
</tr>
<tr>
<td>Alcohol</td>
<td>4</td>
</tr>
<tr>
<td>Microbial agents</td>
<td>3</td>
</tr>
<tr>
<td>Toxic agents</td>
<td>2</td>
</tr>
<tr>
<td>Motor vehicles</td>
<td>2</td>
</tr>
<tr>
<td>Firearms</td>
<td>1</td>
</tr>
<tr>
<td>Sexual behavior</td>
<td><1</td>
</tr>
<tr>
<td>Illicit drugs</td>
<td><1</td>
</tr>
</tbody>
<tfoot>
<tr>
<td rowspan="2">
<source>
<p>SOURCE: A.H Mokdad and coauthors. Actual causes of death in the United Stats, 2000, <em fontStyles="italic">Journal of the American Medical Association</em> 291 (2004): 123B-1245, with corrections from <em fontStyles="italic">Journal of the American Medical Association</em> 293(2005): 298.</p>
</source>
</td>
</tr>
</tfoot>
</table>Table with row and column table header
<table>
<thead>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
<thead>
<tbody>
<tr>
<th>09:00 – 11:00</th>
<td>Closed</td>
<td>Open</td>
<td>Open</td>
<td>Closed</td>
<td>Closed</td>
</tr>
<tr>
<th>11:00 – 13:00</th>
<td>Open</td>
<td>Open</td>
<td>Closed</td>
<td>Closed</td>
<td>Closed</td>
</tr>
<tr>
<td>...</td>
</tr>
</table>Table with double table header rows
Combine the two top rows into a single row. Add a colon : in between.
<table>
<title>TABEL 4.1 Verkiezingsuitslag Tweede Kamerverkiezingen 2010, 2012, 2017 en 2021</title>
<thead>
<tr>
<th>Groepering / fractie</th>
<th>Opgericht in</th>
<th colspan="4">Aantal behaalde Kamerzetels in:</th>
</tr>
<tr>
<th/>
<th/>
<th>2010</th>
<th>2012</th>
<th>2017</th>
<th>2021</th>
</tr>
</thead>
<tbody>
<tr>
<td>Christen Democratisch Appèl (CDA)</td>
<td>
<p>1980</p>
<p>fusie van ARP (1879), CHU en KVP</p>
</td>
<td>21</td>
<td>13</td>
<td>19</td>
<td>15</td>
</tr>
<tr>
<td>Partij van de Arbeid (PvdA)</td>
<td>
<p>1946</p>
<p>(voorloper SDAP reeds in 1894)</p>
</td>
<td>30</td>
<td>38</td>
<td>9</td>
<td>9</td>
</tr>
</tbody>
</table>-
Date:17/08/2022
-
Modified:28/04/2025
-
Category: