Although headers are often at the top of a table, they may also be aligned down the lefthand
side. Therefore, you also need to specify whether the header provides header information
for the remainder of the row, column, row group, or column group that contains
it. This can be done with the scope attribute, which is added to the table header start tag
and given the relevant value (row, col, rowgroup, or colgroup). It??™s also possible to use the
headers attribute in conjunction with id values. See the following ???Scope and headers???
section for more information.
Row groups
Row group elements are almost never used, the main reason being a supposed lack
of browser support. The three possible row group elements??”
,
, and
??”enable browsers to support the scrolling of the
body area of long tables, with the head and foot of the table remaining fixed.
Furthermore, when tables are printed, the aforementioned elements enable the table
head and foot to be printed on each page.
Although browser support comes up short in some areas, I still recommend using row
groups, because they encourage you as a designer to think about the structure of the
tables you??™re creating. Also, although browsers don??™t do all they might with the elements,
they still recognize them, which means they can be used as selectors in CSS, enabling you
to set separate styles for the head, body, and foot data.
Pages:
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337