HTML and CSS Reference
We discuss the class and style attributes and the CSS standard in detail
in Chapter 8 . Their effects apply to all aspects of tables, and are well
supported by the popular browsers. [ Inline Styles: The style Attribute,
10.2.2.4. The event attributes
Most of today's browsers have internal mechanisms that detect the vari-
ous user-initiated mouse and keyboard events that can happen in and
around your tables and their elements. For instance, the user might click
the mouse pointer in one of the table cells or highlight the caption and
then press the Enter key.
With the various event attributes, such as onClick and onKeyDown , you
can react to these events by having the browser execute one or more
respective event attribute. See Chapter 12 for details.
10.2.3. The <tr> Tag
Make a new row in a table with the <tr> tag. Place within the <tr> tag
one or more cells containing headers, defined with the <th> tag, or data,
number of special attributes that control its behavior, along with the
common table attributes described earlier in section 10.2.2 .
Every row in a table has the same number of cells as the longest row;
the browser automatically creates empty cells to pad rows with fewer