When writing in HTML, thetag is used to designate certain properties for each column contained in a element. It is useful when you want to apply formatting to an entire column, rather than each cell individually. The following sections contain information about thetag, including an example of it in use, and related attributes and browser compatibility.

Example ofcode

MonthSavings
March$200
April$300
May$250

Example result

As the HTML code indicates, the entire table has a background color of white and the first column is “painted” grey. The table itself has one of our CSS classes applied to it to improve its appearance.

  • 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. The following table shows all of the deprecated unique HTML attributes for thetag, and a description of each. 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 of this element.

Compatibility

Browser, Cell, Class, Compatibility, Format, Row, Table, Web design terms

  • Our full list of HTML questions and answers HTML and web design help and support.