HTML and CSS Reference
In-Depth Information
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,
8.1.1 ] [ Style Classes, 8.3 ] 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
JavaScript commands or applets that you reference as the value to the
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,
defined with the <td> tag (see section 10.2.4 ) . The <tr> tag accepts a
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
defined cells.
Search WWH ::

Custom Search