
Used to specify that the contained content is organized into a table with rows and columns. Use the TR, TD, and TH elements in the container to create the rows, columns, and cells.
The optional CAPTION, THEAD, TBODY, TFOOT, COLGROUP, and COL elements can be used to organize a table and apply attributes across columns and groups of columns.
<TABLE
ALIGN=CENTER | LEFT | RIGHT
BACKGROUND=url
BGCOLOR=color
BORDER=n
BORDERCOLOR=color
BORDERCOLORDARK=color
BORDERCOLORLIGHT=color
CELLPADDING=n
CELLSPACING=n
CLASS=classname
COLS=n
DATAPAGESIZE=n
DATASRC=#ID
FRAME=ABOVE | BELOW | BORDER | BOX | INSIDES | LHS | RHS | VOID | VSIDES
HEIGHT=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
RULES=ALL | COLS | GROUPS | NONE | ROWS
STYLE=css1-properties
TITLE=text
WIDTH=n
event = script
>
Parameter Description ALIGN=CENTER | LEFT | RIGHT Specifies how the table should be aligned. BACKGROUND=url Specifies a background picture for the table. The picture is tiled behind the text and graphics in the table, table head, or table cell. BGCOLOR=color Sets the background color behind the element. For a complete list of colors, look at the Internet Explorer color table. BORDER=n Specifies the thickness of a border to be drawn around the element. BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table. BORDERCOLORDARK=color Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of BORDERCOLORLIGHT, and must be used with the BORDER attribute. BORDERCOLORLIGHT=color Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of BORDERCOLORDARK, and must be used with the BORDER attribute. CELLPADDING=n Specifies the amount of space between the border of the cell and the contents of the cell. CELLSPACING=n Specifies the amount of space between cells in a table. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. COLS=n The number of columns in the table. DATAPAGESIZE=n Sets the number of records displayed in a data bound repeated table. DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element. FRAME= ABOVE | BELOW | BORDER | BOX | INSIDES | LHS | RHS | VOID | VSIDES Specifies which sides of a frame (outside borders) are displayed. The possible values are:
BORDER Displays a border on all sides of the table frame. This is the default. VOID Removes all outside table borders. ABOVE Displays a border on the top side of the table frame. BELOW Displays a border on the bottom side of the table frame. HSIDES Displays a border on the top and bottom sides of the table frame. LHS Displays a border on the left-hand side of the table frame. RHS Displays a border on the right-hand side of the table frame. VSIDES Displays a border on the left and right sides of the table frame. BOX Displays a border on all sides of the table frame. HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. RULES=ALL | COLS | GROUPS | NONE | ROWS Specifies which dividing lines are displayed (inside borders). Specifies which dividing lines (inside borders) are displayed. The possible values are:
NONE Removes all interior table borders. This is the default. GROUPS Displays horizontal borders between all table groups. Groups are specified by the THEAD, TBODY, TFOOT, and COLGROUP elements. ROWS Displays horizontal borders between all table rows. COLS Displays vertical borders between all table columns. ALL Displays a border on all rows and columns. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages. event Can be one or more of these events:
Valid tags within a table include:
This element is a block element.
Both the start and end tags are required.
<TABLE BORDER=1 WIDTH=80%> <THEAD> <TR> <TH>Heading 1</TH> <TH>Heading 2</TH> </TR> <TBODY> <TR> <TD>Row 1, Column 1 text.</TD> <TD>Row 1, Column 2 text.</TD> </TR> <TR> <TD>Row 2, Column 1 text.</TD> <TD>Row 2, Column 2 text.</TD> </TR> </TABLE>
Creates multiple sections when rules are needed between groups of table rows. If a table does not have a header or footer (does not have a THEAD or TFOOT element), the TBODY element is optional. The end tag is optional.
You can use the TBODY element more than once in a table. This is useful for dividing lengthy tables into smaller units and for controlling the placement of horizontal rules.
<TBODY
ALIGN=CENTER | LEFT | RIGHT
BGCOLOR=color
CLASS=classname
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
STYLE=css1-properties
TITLE=text
VALIGN=BASELINE | BOTTOM | CENTER | TOP
event = script
>
Parameter Description ALIGN=CENTER | LEFT | RIGHT Displays the element left flush, right flush, or centered relative to the display or table. BGCOLOR=color Sets the background color behind the element. For a complete list of colors, look at the Internet Explorer color table. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. VALIGN=BASELINE | BOTTOM | CENTER | TOP Displays the elements aligned at the top or bottom within the element.
BASELINE Vertical align to the baseline of the font. BOTTOM Vertical align to the bottom of the element. MIDDLE Vertical align to the middle of the element. TOP Vertical align to the top of the element. event Can be one or more of these events:
onclick ondblclick ondragstart onhelp onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onselectstart
This element is exposed for all tables, even if the table did not explicitly define a TBODY element.
This element is a block element.
The end tags are optional.
<TABLE> <THEAD> <TR> ... </TR> <TBODY> <TR> ... </TR> </TBODY> </TABLE>
Specifies a cell in a table. This element is valid only within a row in a table. You must use a TR element before using TD. All attributes are optional.
<TD
ALIGN=CENTER | LEFT | RIGHT
BACKGROUND=url
BGCOLOR=color
BORDERCOLOR=color
BORDERCOLORDARK=color
BORDERCOLORLIGHT=color
CLASS=classname
COLSPAN=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NOWRAP
ROWSPAN=n
STYLE=css1-properties
TITLE=text
VALIGN=BASELINE | BOTTOM | CENTER | TOP
event = script
>
Parameter Description ALIGN=CENTER | LEFT | RIGHT Displays the element left flush, right flush, or centered relative to the display or table. BACKGROUND=url Specifies a background picture for the table. The picture is tiled behind the text and graphics in the table, table head, or table cell. BGCOLOR=color Sets the background color behind the element. For a complete list of colors, look at the Internet Explorer color table. BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table. BORDERCOLORDARK=color Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of BORDERCOLORLIGHT, and must be used with the BORDER attribute. For a complete list of colors, look at the Internet Explorer color table. BORDERCOLORLIGHT=color Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of BORDERCOLORDARK, and must be used with the BORDER attribute. For a complete list of colors, look at the Internet Explorer color table. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. COLSPAN=n Specifies how many columns in the TABLE this cell should span. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. NOWRAP The NOWRAP attribute is used when you do not want the browser to automatically perform word wrap. ROWSPAN=n Specifies how many rows in a TABLE this cell should span. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. VALIGN=BASELINE | BOTTOM | CENTER | TOP Displays the elements aligned at the top or bottom within the element.
BASELINE Vertical align to the baseline of the font. BOTTOM Vertical align to the bottom of the element. MIDDLE Vertical align to the middle of the element. TOP Vertical align to the top of the element. event Can be one or more of these events:
This element is a block element.
Both the start and end tags are required.
Creates a multiline text entry control in which the user can type and edit text. The end tag is required. Any text between the start tag and end tag is used as the initial value for the control.
<TEXTAREA
ACCESSKEY=key
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
CLASS=classname
COLS=n
DATAFLD=colname
DATASRC=#ID
DISABLED
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NAME=name
READONLY
ROWS=n
STYLE=css1-properties
TABINDEX=n
TITLE=text
WRAP=OFF | PHYSICAL | VIRTUAL
event = script
>
Parameter Description ACCESSKEY=key Specifies an accelerator for the element. Pressing alt-key selects this element in the user's browser. ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. COLS=n Specifies how many characters wide the text area is. DATAFLD=colname The column name from the data source object that supplies the bound data. DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element. DISABLED Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out." ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. NAME=name Specifies the name of the control, bookmark, or application. READONLY Causes the element's contents to be read only. ROWS=n Specifies the number of rows tall the text area control should be. STYLE=css1-properties Specifies an in-line style sheet for the tag. TABINDEX=n Sets the tab order position for the object. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. WRAP=OFF | PHYSICAL | VIRTUAL Specifies how to handle word-wrapping inside the text area.
OFF Word-wrapping is disabled (default). PHYSICAL The text is displayed and submitted word-wrapped VIRTUAL The text is displayed word-wrapped, but is submitted as typed. event Can be one or more of these events:
The default font is fixed pitch.
Both the start and end tags are required.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.