|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Example: <TABLE BORDER=2 CELLPADDING=4 FRAME=BORDER RULES=ALL ALIGN=CENTER> ... </TABLE> Related Tags: The <TABLE> and </TABLE> tags form the container for all the other table-related tags. The many tags you can use between <TABLE> and </TABLE> include <CAPTION>, <THEAD>, <TFOOT>, <TBODY>, <COLGROUP>, <COL>, <TR>, <TH>, and <TD>. <CAPTION> Type: Container Function: Specifies a caption for a table. Syntax: <CAPTION ALIGN=TOP|BOTTOM|LEFT|RIGHT> ... caption text goes here ... </CAPTION> Attributes: The ALIGN attribute gives you fine control over how the caption is placed. Setting ALIGN to TOP or BOTTOM places the caption above or below the table, respectively. Using LEFT or RIGHT floats the caption in the left or right margin. The ALIGN attribute has been deprecated in HTML 4.0. Example: <CAPTION ALIGN=BOTTOM> Table 1 - Return on Investment </CAPTION> <THEAD> Type: Container Function: Defines the header section of a table. Being able to define the header separately enables the browser to duplicate the header when breaking the table across multiple pages. Syntax: <THEAD ALIGN=LEFT|CENTER|RIGHT|JUSTIFY|CHAR VALIGN=TOP|MIDDLE|BOTTOM|BASELINE CHAR=alignment_character CHAROFF=alignment_character_offset> ... rows that comprise the header ... </THEAD> Attributes: The <THEAD> tag can take the following four attributes:
Example: <THEAD ALIGN=CENTER VALIGN=BASELINE> <TR> <TH>ID #</TH> <TH>Property</TH> <TH>Tax Assessment</TH> ... </TR> </THEAD> Related Tags: The rows of the table header are built with <TR>, <TH>, and <TD> tags. Each table header must comprise at least one row. <TFOOT> Type: Container Function: Defines the footer section of the table. Syntax: <TFOOT ALIGN=LEFT|CENTER|RIGHT|JUSTIFY|CHAR VALIGN=TOP|MIDDLE|BOTTOM|BASELINE CHAR=alignment_character CHAROFF=alignment_character_offset> ... </TFOOT> Attributes: <TFOOT> can take the same ALIGN and VALIGN attributes as the <THEAD> tag:
Example: <TFOOT ALIGN=JUSTIFY VALIGN=TOP> <TR> <TD>&copy; 1998 - Macmillan Computer Publishing USA</TD> ... </TR> </TFOOT> Related Tags: You specify the rows and cells in the table footer by using the <TR>, <TH>, and <TD> tags. A table footer must be made up of at least one row.
|
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. |