|
To access the contents, click the chapter and section titles.
HTML 4.0 Sourcebook
TR marks out a row of a table. For example, a row in a table might be coded <TR> <TH> Heading </TH> <TD> data 1 </TD> <TD> data2 </TD> <TD> data3 </TD> <TD> data4 </TD> </TR> which indicates a row containing five columns: the first column being a table heading and the rest containing table data. Note that although the ending </TR> is optional, you should always put it inmany browsers will improperly render tables when the end tags are absent. TR takes the same layout control attributes as COL (ALIGN, VALIGN, CHAR, and CHAROFF), and you are referred to that section for a detailed description of these attributes. In the case of TR, the layout properties apply to all cells within the defined row.
Current browsers support a number of proprietary attributes to control background coloring of the cells in a table row. These attributes are:
TD and TH Elements: Table Data and Table Headings
TD and TH elements specify the cells in a table. The only difference between the two is their meaning: TD specifies a Table Data cella cell containing table data, while TH specifies Table Heading cella cell containing a table heading. In both cases, the element is not empty but the end tag is optional, as the end is implied by the next <TH>, <TR>, or <TD> tag. A cell can have empty content, which simply means that the cell is blank. Note that although the ending </TD> and </TH> tags are optional, you should always put them inmany browsers will improperly render tables when end tags are absent. TD and TH elements have several attributes that define the formatting and layout of the cell and the cell content. All of these attributes are optional. In particular, the attributes ALIGN, CHAR, CHAROFF, BGCOLOR, VALIGN, and WIDTH have the same meanings as with the COL element, and you are referred to the COL element section for detailed descriptions. Note that all cells in a table row must have the same height, while all cells in a column must have the same width; thus, if there are two WIDTH or HEIGHT specifications in the same column or row respectively, the largest value is used.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |