The <table> element creates tables inside Web documents.
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV/MSN TV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0: XHTML Basic Tables Module, XHTML Tables Module
- border (optional)
- bgcolor (optional) DEPRECATED
- cellpadding (optional)
- cellspacing (optional)
- class (optional)
- dir (optional)
- frame (optional)
- id (optional)
- lang (optional)
- onclick (optional)
- ondblclick (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- rules (optional)
- style (optional)
- summary (optional)
- title (optional)
- width (optional)
table content. The following tags are valid within the <table> tag:
caption, col, colgroup, tbody, tfoot, thead
The <table> tag is valid within the following tags:
blockquote, body, button, center, dd, div, fieldset, form, iframe, li, noframes, noscript, object, td, th
- basic table
<table border width="200">
<tr><td>
column 1
</td><td>
column 2
</td></tr>
</table>
- complex table
<table cellspacing="2" cellpadding="2" frame="below" rules="groups" summary="This complex table contains three columns of data and two rows, and is meant to demonstrate table effects">
<caption>This is a more complex table</caption>
<colgroup span="2" />
<colgroup span="1" id="group2" />
<tr>
<th>row 1 column 1 group 1</th>
<th>row 1 column 2 group 1</th>
<td>row 1 column 3 group 2</td>
</tr>
<tr>
<td>row 2 column 1 group 1</td>
<td>row 2 column 2 group 1</td>
<td>row 2 column 3 group 2</td>
</tr>
</table>
<table> Special Notes
- In XHTML, tables are meant to display only tabular data. If you want to layout your Web page, you should use style sheets.
- Keep in mind that tables are not very accessible. Use features like caption and summary to make it more accessible.

