Tags Relevant to Tables
TAG |
Description |
Example |
<TABLE> ... </TABLE> |
The tag that defines a Table in HTML. If the attribute BORDER is present, then the browser 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 Attributes
Note: Attributes defined within <TH> ... </TH> or
a <TD> ... </TD> cells will override the default alignment set in a
<TR> ... </TR>.
|
|
- ALIGN (LEFT, CENTER, RIGHT)
- VALIGN (TOP, MIDDLE, BOTTOM)
- COLSPAN=X
- ROWSPAN=X
- NOWRAP
|
- Horizontal Alignment of a cell.
- Vertical Alignment of a cell.
- The number(X) of columns a cell spans.
- The number(X) of rows a cell spans.
- Turn off word wrapping within a cell.
|