When writing in HTML, the
tag is used to designate the section of a table containing all of the data cells. It is useful for sectioning off parts of the table to be styled with CSS. The following sections contain information about thetag, including an example of it in use, and related attributes and browser compatibility.Example ofcode#| Month | Savings |
|---|
| March | $200 |
| April | $300 |
| May | $250 |
| Total | $750 |
Example result#
We have added a few of our own classes to the table using CSS; this action allows us to improve its appearance.
More advanced tables may also include the
,,,, orelements.Browsers may use the
element to enable the scrolling of a table body independently of the header and footer sections.- Example ofcode
- Example result
- Deprecated attributes
- Compatibility
- Related information
Deprecated attributes#
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. Every attribute that was unique to the
tag is deprecated. While these attributes may work with the some versions of HTML, they will eventually be phased out. You should use CSS to adjust the dimensions and appearance of this element.Compatibility#
Browser, Cell, Class, Column, Compatibility, Container tag, Format, Row,
,,, Web design terms- HTML and web design help and support.