Skip to content Skip to sidebar Skip to footer

Table code must include a <caption>, and use <th> for cells that are column or row headings.

The site stylesheet manages the formatting. Don’t put any extra formatting into the table code.

Column heading 1Column heading 2Column heading 3
Row headingCell contentsCell contents

[greybox]

<table valign="top">
<caption>Caption text here.</caption>
<tbody>
<tr>
<th scope”col”>Column heading 1</th>
<th scope”col”>Column heading 2</th>
<th scope”col”>Column heading 3</th>
</tr>
<tr>
<th scope=”row>Row heading</th>
<td>Cell contents</td>
<td>Cell contents</td>
</tr></tbody></table>

[/greybox]

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.