When writing in HTML, thetag is used to designate a set of rows defining the head of the columns on a table. 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.Using theand
elements ensures that a header and footer appear on each page of a large table printout.- 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 thetag 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.