TABLE description:
The <table> tag creates tables inside Web documents.
TABLE Web Browser Support:
- AvantGo Palm OS
- AvantGo Windows CE
- Chrome 1, 2, 3, 4, 5
- Firefox 1, 2, 3
- Internet Explorer 2, 3, 4, 5, 6, 7, 8
- Netscape 2, 3, 4, 6, 7, 8
- Opera 3, 4, 5, 6, 7, 8, 9, 10
- Safari 1, 2, 3, 4, 5
- WebTV/MSN TV
HTML Versions
TABLE Attributes:
Global attributes, event attributes and:
- align DEPRECATED
- border
- cellpadding
- cellspacing
- frame
- rules
- summary
- width
Plus a few other attributes that are not part of the specification, but will work with your table. Most of these attributes have been deprecated in favor of style sheets.
- background use background-image CSS property instead
- bgcolor use background-color CSS property instead
TABLE End Tag:
</table> REQUIRED
Contents:
tabular data. The following tags are valid within the table tag:
caption, col, colgroup, tbody, tfoot, thead
TABLE Valid Context:
The table tag is valid within the following tags:
blockquote, body, button, center, dd, div, fieldset, form, iframe, li, noframes, noscript, object, td, th
TABLE Usage:
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.

