Tables


<TABLE></TABLE>
This element is used to define a table. Tables are used to organize data as well as to provide structure for laying out pages.

<TABLE BORDER="#">
This attribute specifies in pixels the width of a table's borders. A value of 0 makes a borderless table, which is useful for graphic layout.

<TABLE BORDERCOLOR="?">
This attribute supported by Internet Explorer 4 and Netscape 4, is used to set the border color for a table. The attribute should onyl be used with a positive value for the BORDER attribute. The value of the attribute can be either a named color, such as blue or a color specified in the hexademical #RRGGBB format, such as #0000FF. Internet Explorer colors the entire table border, including cell borders; Netscape only colors the outer border of the table.

<TABLE BORDERCOLORLIGHT="?">
This Internet Explorer - specific attribute specifies the darker of two border colors used to create a three - dimensional effect for cell borders. It must be used with the BORDER attribute set to a positive value. The attribute value can be either a named color, such as red, or a color specified in the hexademical #RRGGBB, such as #FF0000.

<TABLE BORDERCOLORDARK="?">
This Internet Explorer - specific attribute specifies the lighter of two border colors used to create a three - dimensional effect for cell borders. It must be used with the BORDER attribute set to a positive value. The attribute value can be either a named color, such as green, or a color specified in the hexademical #RRGGBB, such as #00FF00.

<TABLE CELLSPACING="#">
This attribute sets the width in pixels between individual cells.

<TABLE CELLPADDING="#">
This attribute sets the width in pixels between the edge of a cell and its content.

<TABLE WIDTH="# OR %">
This attribute specifies the width of the table either in pixel or as a percentage value of the enclosing window

<TABLE ALIGN="?">
This attribute specifies the alignment of the table with respect to surrounding text. The HTMl 4 defines center, left, and right.

<TABLE BACKGROUND="URL">
This nonstandard attribute, which is supported by Internet Explorer, Netscape, and WebTV, specifies the URL of a background image for the table. The image is tiled if it is smaller that the table dimensions. Netscape displays the background image in each table cell, rather that behind the complete table like Internet Explorer.

<TABLE BGCOLOR="?">
This attribute specifies a background color for a table. Its value can be either a names color, such as red, or a color specified in the hexademical #RRGGBB format, such as #FF0000.

<TABLE HEIGHT="# or %">
For Netscape 4, this attribute allows the author to specify the height of the tables in pixels. Internet Explorer 4 allows both pixels and percentages.

<TABLE WIDTH="# or %">
This attribute specifies the width of the table either in pixels or as percentage value of the enclosing window.

<CAPTION></CAPTION>
This element is used within both the figure and table elements to define a caption.

<CAPTION ALIGN></CAPTION>
This attribute specifies the alignment of the caption. HTML 4 defines bottom, left, right, and top as legal values. Internet Explorer and WebTV also support center. Because this does not provide the possiblity to combine vertical and horizontal alignments, Microsoft has introduced the VALIGN attribute for the <CAPTION> element.

<CAPTION VALIGN></CAPTION>
This Internet Explorer - specific attribute specifies whether the table caption appears at the top or bottom.

<TH>
This element specifies a header cell in atable. The element should occur within a table row as defined by a <TR> element. The main difference between this element and <TD> is that browsers may render table headers slightly differently.

<TH ALIGN="?">
The attribute is used to align the contents of the cells. Common values are center, justify, left, and right.

<TH BACKGROUND="URL">
This nonstandard attribute, which is supported by Internet Explorer, Netscape, and WebTV, specifies the URL of a background image for the table cell. The image is tiled if it is smaller that the cell's dimensions.

<TH BGCOLOR="?">
This attribute specifies a background color for a table cell. Its value can be either a named color, such as red, or a color specified in the hexademical #RRGGBB format such as #FF0000.

<TH COLSPAN="#">
This attribute takes a numeric value that indicates how many columns wide a cell should be. This useful to create tables with different widths.

<TH ROWSPAN="#">
This attribute takes a numeric value that indicates how many rows high a table cell should span. This attribute is useful in defining tables cells with different heights.

<TH HEIGHT="#">
This attribute indicates the height in pixels of the header cell.

<TH WIDTH="#">
This attribute specifies the width of a header cell in pixels.

<TH NOWRAP>
This attribute keep the content within a table header cell from automatically wrapping.

<TR>
This element specifies a row in a table. The individual cells of the row are defined by the <TH> and <TD> elements.

<TR ALIGN="?">
The attribute is used to align the contents of the cells. Common values are center, justify, left, and right.

<TR VALIGN="?">
This attribute is used to set the vertical alignment for the table cells with the TR element. HTML 4 defines baseline, bottom, middle, and top. Internet Explorer replaces middle with center; the effect should be the same.

<TR BGCOLOR="?">
This attribute is specifies a background color for all the rows. Its value can be either a names color such as red, or a color specified in the hexademical #RRGGBB format, such as #FF0000.

<TD>
This element specifies a data cell in a table. The element should occur within a table row as defined by the TR element.

<TD ALIGN="?">
The attribute is used to align the contents of the cells. Common values are center, justify, left, and right.

<TD VALIGN="?">
This attribute is used to set the vertical alignment for the table cells with the TR element. HTML 4 defines baseline, bottom, middle, and top. Internet Explorer replaces middle with center; the effect should be the same.

<TD BACKGROUND="URL">
This nonstandard attribute, which is supported by Internet Explorer, Netscape, and WebTV, specifies the URL of a background image for the table cell. The image is tiled if it is smaller that the cell's dimensions.

<TD BGCOLOR="?">
This attribute is specifies a background color for all the rows. Its value can be either a names color such as red, or a color specified in the hexademical #RRGGBB format, such as #FF0000.

<TD HEIGHT="#">
This attribute indicates the height in pixels of the header cell.

<TD WIDTH="#">
This attribute specifies the width of a header cell in pixels.

<TD COLSPAN="?">
This attribute takes a numeric value that indicates how many columns wide a cell should be. This useful to create tables with different widths.

<TD ROWSPAN="?">
This attribute takes a numeric value that indicates how many rows high a table cell should span. This attribute is useful in defining tables cells with different heights.

<TD NOWRAP="?">
This attribute takes a numeric value that indicates how many rows high a table cell should span. This attribute is useful in defining tables cells with different heights.


[Basics| Frames| Formatting| Images| Links| List| Marquees| Table| Text Tags]
Hosted by www.Geocities.ws

1