Siden er opdateret 20. 3. 2009
<table> anvendes til definere en tabel - et skema til visning af tabylære data (hvad man også på papir ville sætte i et skema).
<table summary="tabeldemo">
<caption>Tabel med to rækker og tre kolonner</caption>
<colgroup span="3">
<col span="1" style="width:50%;" />
<col span="2" style="width:25%;" />
</colgroup>
<thead>
<tr>
<th>H 1</th>
<th>H 2</th>
<th>H 3</th>
</tr>
</thead>
<tfoot>
<tr>
<td>F 1</td>
<td>F 2</td>
<td>F 3</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1.1</td>
<td>1.2</td>
<td>1.3</td>
</tr>
<tr>
<td>2.1</td>
<td>2.1</td>
<td>2.3</td>
</tr>
</tbody>
</table>
Vil på siden se sådan ud:
| H 1 | H 2 | H 3 |
|---|---|---|
| F 1 | F 2 | F 3 |
| 1.1 | 1.2 | 1.3 |
| 2.1 | 2.1 | 2.3 |
<table> kan indeholdes i body, dd, del, div, fieldset, form, iframe, ins, li, noframes, noscript, td og th
<table> kan indeholde caption, colgroup, tbody, thead, tfoot og tr
Attributter - ingen attributter er krævede, kun to ud over de fælles attributter er valide i strict (x)html - brug i stedet css til at style <table>.