HTML Table Tag
Reference on the HTML table Tag. Including its history and useful example, and a list of the allowed attributes.
The Table element of HTML is used for tabular data.
It also got a long history as one of the only ways to layout a website, back when standards was still in their infant stages. But this practice is strongly discouraged with the advance of CSS, and its accompanied support in browsers.
Attributes
| Attribute: | Value: | Description: |
| Attrs | Other Attributes | Common, Event, I18n |
| summary | Text | Used to describe the table content for speach output |
Additional attributes
Note. Additional attributes which may be of interest, these are not deprecated, but one should check to make sure that CSS alternatives doesn't exist, or isn't supported by the latest browsers.
| Attribute: | Value: | Description: |
| Width | Units of Measurement | Defines the width of the element, it is recommended to use the CSS width property instead. |
| border | Pixels | Defines the width of the table-border in pixels, its recommended to use the Border Properties of CSS instead. Use Border-collapse to remove the space between borders. |
| cellspacing | Units of Measurement | Defines the spacing between cells. You may want to consider using the css Border-spacing Property instead. |
| cellpadding | Units of Measurement | Defines the spacing within cells. Its recommended to use the CSS Padding Properties instead. |
Example
<table summary="This table contains a list of allowed attributes for the table element."> <tr> <td>Attribute:</td><td>Value:</td><td>Description:</td> </tr> <tr> <td>Width</td><td>Units of Measurement</td><td>Defines the width of the table</td> </tr> </table>



