| Tables are meant to display data in a tabular format. Tables are widely used for page layout purposes, but you can generally create any layout based on tables more simply with Cascading Style Sheets. <caption>...</caption> Usage | Displays a table caption. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | Deprecated | align="..."Controls alignment (left, center, right, justify). | Empty | No. | Notes | Optional. Used inside the table element. |
<col> Usage | Groups columns within column groups in order to share attribute values. | Start/End Tag | Required/IllegalSee note for XHTML 1.0 requirements. | Attributes | %coreattrs, %i18n, %events. | | | span="..."The number of columns the group contains. | | | width="..."The column width as a percentage, pixel value, or minimum value. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of a cell (top, middle, bottom, baseline). | Empty | Yes. | Notes | In XHTML 1.0, this tag should take the XML form of <col /> to ensure compatibility with older browsers. | <colgroup>...</colgroup> Usage | Defines two or more columns as a group. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | span="..."The number of columns in a group. | | | width="..."The width of the columns. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of a cell (top, middle, bottom, baseline). | Empty | No. | <table>...</table> Usage | Creates a table. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | | width="..."Table width. | | | cols="..."The number of columns. | | | border="..."The width in pixels of a border around the table. | | | frame="..."Sets the visible sides of a table (void, above, below, hsides, lhs, rhs, vsides, box, border). | | | rules="..."Sets the visible rules within a table (none, groups, rows, cols, all). | | | cellspacing="..."Spacing between cells. | | | cellpadding="..."Spacing in cells. | Deprecated | align="..."Controls alignment (left, center, right, justify). | | | bgcolor="..."Sets the background color. | Empty | No. |
<tbody>...</tbody> Usage | Defines the table body. | Start/End Tag | Optional/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Empty | No. | <td>...</td> Usage | Defines a cell's contents. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | axis="..."Abbreviated name. | | | axes="..."axis names listing row and column headers pertaining to the cell. | | | rowspan="..."The number of rows spanned by a cell. | | | colspan="..."The number of columns spanned by a cell. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Deprecated | nowrap="..."Turns off text wrapping in a cell. | | | bgcolor="..."Sets the background color. | | | height="..."Sets the height of the cell. | | | width="..."Sets the width of the cell. | Empty | No. | <tfoot>...</tfoot> Usage | Defines the table footer. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Empty | No. | <th>...</th> Usage | Defines the cell contents of the table header. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | axis="..."Abbreviated name. | | | axes="..."axis names listing row and column headers pertaining to the cell. | | | rowspan="..."The number of rows spanned by a cell. | | | colspan="..."The number of columns spanned by a cell. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Deprecated | nowrap="..."Turns off text wrapping in a cell. | | | bgcolor="..."Sets the background color. | | | height="..."Sets the height of the cell. | | | width="..."Sets the width of the cell. | Empty | No. |
<thead>...</thead> Usage | Defines the table header. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Empty | No. | <tr>...</tr> Usage | Defines a row of table cells. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | | align="..."Horizontally aligns the contents of cells (left, center, right, justify, char). | | | char="..."Sets a character on which the column aligns. | | | charoff="..."Offset to the first alignment character on a line. | | | valign="..."Vertically aligns the contents of cells (top, middle, bottom, baseline). | Deprecated | bgcolor="..."Sets the background color. | Empty | No. |
|