TAG | Description | Example |
---|---|---|
<TABLE> ... </TABLE> | The tag that defines a Table in HTML. If the attribute BORDER is present, then Mosaic will display the table with a border. | <TABLE BORDER> ... </TABLE> |
<CAPTION> ... </CAPTION> | This tag defines the caption for the title of the table. The default position of the Title is centered at the top of the table. The attribute ALIGN=BOTTOM can be used to position the caption below the table. Note: Any kind of markup can exist in the caption. | <CAPTION ALIGN=BOTTOM> ... </CAPTION> |
<TR> ... </TR> | This tag specifies a Table Row within a table. You may define default attributes for the entire row. These attributes are: ALIGN (LEFT, CENTER, RIGHT) and/or VALIGN (TOP, MIDDLE, BOTTOM). | <TR VALIGN=BOTTOM ALIGN=CENTER> ... </TR> |
<TH> ... </TH> | This tag defines a Table Header cell. By default the text in this cell is bold and centered. Table Header cells may contain other attributes to determine the characteristics of the cell and/or its contents. See Alignment Attributes at the end of this table for more information. | <TH ALIGN=CENTER VALIGN=TOP COLSPAN=4 ROWSPAN=2 NOWRAP> ... </TH> |
<TD> ... </TD> | This tag defines a Table Data cell. By default the text in this cell is aligned left and centered vertically. Table Data cells may contain other attributes to determine the characteristics of the cell and/or its contents. See Alignment Attributes at the end of this table for more information. | <TD ALIGN=CENTER VALIGN=TOP COLSPAN=2 ROWSPAN=3 NOWRAP> ... </TD> |
Alignment AttributesNote: Attributes defined within <TH> ... </TH> or a <TD> ... </TD> cells will override the default alignment set in a <TR> ... </TR>. | ||
|
|
<TABLE> <== start of table definition <CAPTION> caption contents </CAPTION> <== caption definition <TR> <== start of first row definition <TH> cell contents </TH> <== first cell in row 1 ... <TD> cell contents </TD> <== last cell in row 1 </TR> <== end of first row definition <TR> <== start of second row definition <TD> cell contents </TD> <== first cell in row 2 ... <TD> cell contents </TD> <== last cell in row 2 </TR> <== end of second row definition ... <TR> <== start of last row definition <TH> cell contents </TH> <== first cell in last row ... <TH> cell contents </TH> <== last cell in last row </TR> <== end of last row definition </TABLE> <== end of table definitionIn other words, the <TABLE> and </TABLE> tags must surround the entire table definition. The first item inside the table is the CAPTION, which is optional. Then we can have any number of rows defined by the <TR> and </TR> tags. Within a row we can have any number of cells defined by the <TD> </TD> or <TH> </TH> tags.