plainblack

Tables:

 

You can create a table to neatly display information on a Web page. One thing to keep in mind is that you may include any Body HTML (i.e. markup that can go in the Body tag) in a table cell, including tables. Therefore, you could make the contents of a cell bold or italic

 

Table Basic Tags

 

<TABLE></TABLE>

 

Specifies an HTML table. (By default the table will have no borders)

 

<TR></TR>

 

Specifies a Table Row

 

<TH></TH>

 

Specifies a Table Header Cell

 

<TD></TD>

 

Specifies a Table Data Cell

 

Table Attributes

 

The <TABLE> tag comes with several attributes to make it look nicer. These attributes help you define your whole table whereas there are further attributes which further define table cells ( inside the <TH> and or <TD> tags) and more attributes which define table rows (inside the <TR> tags).

 

 

<TABLE> specifies the postion of the table with respect to the document. Valid values can be LEFT, RIGHT, and CENTER. Within the <TH> or <TD> tags, align specifies the alignment of text within the cell. Within the <TR> tag, align specifies the alignment of text within the cells in that row specifically.

 

 

<TABLE> colors the table background. Within the <TH> or <TD> tags, specifies the background color for the table cell. Within the <TR> tag, specifies the background color for the table cells in a specific row.

 

 

<TABLE> only. Specifies the pixel width of the border that divides table cells and the table itself.

 

 

 

<TABLE> only. CELLPADDING specifies the amount of space between the borders of the table and the actual data in a cell whereas CELLSPACING specifies the amount of space inserted between table cells.

 

 

<TABLE> specifies the height of the table in pixels or as a % of available space. Within the<TH> or <TD> tags, HEIGHT specifies the height of a cell.

 

 

<TABLE> only. Specifies the width of the table in absolute pixels or as a % of available space.

 

 

<TH> or <TD> only. Specifies the number of columns that a single cell should span.

 

 

<TH> or <TD> only. Specifies that the text within the cell should not be word-wrapped.

 

 

<TH> or <TD> only. Specifies the number of rows the cell should span.

 

VALIGN

 

<TR> only. Specifies the vertical alignment of text within the cells in the row. Valid values are TOP, BOTTOM, or CENTRE

© 2001-2004 Plain Black LLC