Explain how rows in a table can be grouped.

What will be an ideal response?

Sometimes a table of data is quite long. Although a user can scroll down, what if the user needs to print the table? The table may print on multiple pages, with the table header row on the first page only and the footer row only on the last page. To address this situation, HTML includes elements that make it possible to specify rows that should repeat at the top and bottom of printed pages.

Table rows can be grouped into a table header, a table footer, or one or more table body sections. The elements used to group table row content are thead, tfoot, and tbody. The thead and tfoot elements are useful when you expect users will want to print tables that are longer than one page; using these elements, the table header and footer information can be printed on each page that contains table data, similar to a header row in Microsoft Word or Excel. However, if you use all three of these elements in your table code, you must disrupt the source order in the table code, which is why these elements are not often used. If you do use these elements, you must list the thead element followed by the tfoot element, and then list the code for the tbody element.

Computer Science & Information Technology

You might also like to view...

The ____________________ procedure is used to close a StreamWriter file.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Discuss how memory fragmentation occurs in each of the memory organization schemes presented in this chapter.

What will be an ideal response?

Computer Science & Information Technology