id, class (document-wide identifiers [p.65] )
lang (language information [p.71] ), dir (text direction [p.73] )
title (element title [p.57] )
style (inline style information [p.174] )
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove,
onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events [p.240] )
bgcolor (background color [p.183] )
frame, rules, border (borders and rules [p.119] )
cellspacing, cellpadding (cell margins [p.124] )
The TABLE element contains all other elements that specify caption, rows, content, and formatting.
The following informative list describes what operations user agents may carry out when rendering a
Make the table summary available to the user. Authors should provide a summary of a table's
content and structure so that people using non-visual user agents may better understand it.
Render the caption, if one is defined.
Render the table header, if one is specified. Render the table footer, if one is specified. User agents
must know where to render the header and footer. For instance, if the output medium is paged, user
agents may put the header at the top of each page and the footer at the bottom. Similarly, if the user
agent provides a mechanism to scroll the rows, the header may appear at the top of the scrolled area
and the footer at the bottom.
Calculate the number of columns [p.111] in the table. Note that the number of rows in a table is equal
to the number of TR elements contained by the TABLE element.
Group the columns according to any column group [p.108] specifications.
Render the cells, row by row and grouped in appropriate columns, between the header and footer.
Visual user agents should format the table [p.119] according to HTML attributes and style sheet
The HTML table model has been designed so that, with author assistance, user agents may render tables
incrementally (i.e., as table rows arrive) rather than having to wait for all the data before beginning to
In order for a user agent to format a table in one pass, authors must tell the user agent:
The number of columns in the table. Please consult the section on calculating the number of columns
in a table [p.111] for details on how to supply this information.
The widths of these columns. Please consult the section on calculating the width of columns [p.112]
for details on how to supply this information.
More precisely, a user agent may render a table in a single pass when the column widths are specified
using a combination of COLGROUP and COL elements. If any of the columns are specified in relative or
percentage terms (see the section on calculating the width of columns [p.112] ), authors must also specify
the width of the table itself.
11.2.1 The TABLE element