HyperTextMarkupLanguage

HTML Advanced Functions


| Home | Agenda | Next |

TR - Table Row

Appearance: <CAPTION> </CAPTION>
Attributes: ALIGN=left|right|center, VALIGN=top|middle|bottom|baseline

TD - Table Data

Appearance: <TD> </TD>
Attributes: ROWSPAN=n, COLSPAN=n, NOWRAP, ALIGN=left|right|center, VALIGN=top|middle|bottom|baseline, WIDTH=n, HEIGHT=n

TH - Table Heading

Appearance: <TH> </TH>
Attributes: ROWSPAN=n, COLSPAN=n, NOWRAP, ALIGN=left|right|center, VALIGN=top|middle|bottom|baseline, WIDTH=n, HEIGHT=n

The details of a table, the rows and cells, are designed row by row and cell by cell. First we detail the attributes of row 1 and then each cell in row 1 before we continue to row 2, 3, etc. Columns are automatically calculated. Three tags define the table. The following code:

<TABLE BORDER>
<TR>
        <TH>First Name</TH>
        <TH>Last Name</TH>
        <TH>Address</TH>
</TR>
<TR>
        <TD>John</TD>
        <TD>Smith</TD>
        <TD>Anywhere, USA</TD>
</TR>
</TABLE>
would produce:

First Name Last Name Address
John Smith Anywhere, USA


| Home | Agenda | Next |

T10D012