Tables
- <TABLE attribute1="..." attribute2="...">...< /TABLE>
Creates a table that can include any number of rows.-
Attributes:
- BORDER="..."--Specifies the width of the border around the table. If set to 0, there will be no border.
- BACKGROUND="..."--Specifies the address of an image to be tiled as background. (IE)
- BGCOLOR="..."--Specifies the background color of the table.
- BORDERCOLOR="..."--Specifies the border color of the table.
- BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently. (IE)
- BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently. (IE)
- WIDTH="..."--Specifies the width of the table on the page.
- CELLSPACING="..."--Specifies the amount of space between the cells in the table.
- CELLPADDING="..."--Specifies the amount of space between the edges of the cell and the text inside.
- FRAME="..."--Specifies which sides of the outer border of the table are displayed. (IE)
-
Possible types:
- VOID--No outside borders are displayed.
- ABOVE--Displays a border on the top side of the table.
- BELOW--Displays a border on the bottom side of the table.
- HSIDES--Displays the top and bottom borders of the table.
- LHS--Displays the left-hand side border.
- RHS--Displays the right-hand side border.
- VSIDES--Displays the right and left side borders.
- BOX--Displays a border on all sides of the table.
- BORDER--Displays a border on all sides of the table.
- HEIGHT="..."--Specifies the height of the table on the page.
- RULES="..."--Specifies which inner borders of the table are displayed. (IE)
-
Possible types:
- NONE--No inside borders are displayed.
- GROUPS--Displays inner borders between the various table groups such as THEAD, TFOOT, TBODY, and COLGROUP groups.
- ROWS--Displays inner borders between the table rows.
- COLS--Displays inner borders between the table columns.
- ALL--Displays inner borders between all rows and columns.
- <CAPTION attribute1="...">...< /CAPTION>
Specifies the caption of the table.-
Attributes:
- ALIGN="..."--Specifies the position of the caption. Possible values are LEFT, RIGHT, BOTTOM, or TOP.
- <TR attribute1="..." attribute2="...">...< /TR>
Specifies a table row. It can enclose the table heading and table data.-
Attributes:
- ALIGN="..."--Specifies the horizontal alignment of the row contents. Possible values are LEFT, RIGHT, and CENTER.
- BGCOLOR="..."--Specifies the background color for the row.
- BORDERCOLOR="..."--Specifies the border color of the row.
- BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently. (IE)
- BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently. (IE)
- VALIGN="..."--Specifies the vertical alignment of the row contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.
- HEIGHT="..."--Specifies the height of the cell.
- <TH attribute1="..." attribute2="...">...< /TH>
Makes the cell a table heading.-
Attributes:
- ALIGN="..."--Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT, and CENTER.
- NOWRAP--Prevents word wrapping within the cell
- BGCOLOR="..."--Specifies the background color for the cell.
- BACKGROUND="..."--Specifies the address of an image to be tiled as background. (IE)
- BORDERCOLOR="..."--Specifies the border color of the cell.
- BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently. (IE)
- BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently. (IE)
- VALIGN="..."--Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.
- ROWSPAN="..."--Specifies the number of rows the cell will span.
- COLSPAN="..."--Specifies the number of columns the cell will span.
- WIDTH="..."--Specifies the width of the cell.
- HEIGHT="..."--Specifies the height of the cell.
- <TD attribute1="..." attribute2="...">
These go inside the TR tags and they define the data in a cell. End tag may be used.-
Attributes:
- BACKGROUND="..."--Specifies the address of an image to be tiled as background. (IE)
- BGCOLOR="..."--Specifies the background color for the individual cell.
- BORDERCOLOR="..."--Specifies the border color of the cell.
- BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently. (IE)
- BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently. (IE)
- ALIGN="..."--Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT, and CENTER.
- NOWRAP--Prevents word wrapping within the cell
- VALIGN="..."--Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.
- ROWSPAN="..."--Specifies the number of rows the cell will span.
- COLSPAN="..."--Specifies the number of columns the cell will span.
- WIDTH="..."--Specifies the width of the cell.
- HEIGHT="..."--Specifies the height of the cell.
- <COLGROUP attribute1="..." attribute2="..."> (IE)
Specifies the properties of one or more columns. This tag generally goes right after the opening TABLE tag.-
Attributes:
- ALIGN="..."--Specifies the position of the text within the cells of the Columns. Possible values are CENTER, LEFT, RIGHT, BOTTOM, or TOP.
- SPAN="..."--Specifies the number of columns for which these attributes will apply.
- <COL attribute1="..." attribute2="..."> (IE)
Used with the COLGROUP tag, this specifies the properties of one column. This tag overrides any attributes specified in the COLGROUP tag that comes right before it.-
Attributes:
- ALIGN="..."--Specifies the position of the text within the cells of the Column. Possible values are CENTER, LEFT, RIGHT, BOTTOM, or TOP.
- SPAN="..."--Specifies the number of columns for which these attributes will apply.
- <TBODY>...< /TBODY> (IE)
Encloses the body of your table. This tag is optional unless you are using the THEAD or TFOOT tags. It used to separate the rows in the table from those in the header or footer. - <TFOOT>...< /TFOOT> (IE)
Encloses the table rows that are to be used as a footer. It is an optional tag and comes right after the ending TBODY element. - <THEAD>...< /THEAD> (IE)
Encloses the table rows that are to be used as a header. It is an optional tag and comes before the opening TBODY element.
| Tables | Forms | Style Sheets | General Formatting |
| Color Names | Color Codes | Color Tester |
| ASCII Codes | Entities | META Tags |
| SQL Reference | Web Graphics |
Free-CGI.com is updated on a daily basis. New
features and applications are added almost
every day. Free-CGI.com is always under construction. If you have any comments or
suggestions, please contact free-cgi. Thanks!
every day. Free-CGI.com is always under construction. If you have any comments or
suggestions, please contact free-cgi. Thanks!
| Free-CGI
| Applications
| Register
| Customize
| Manage
| Free-Code
| Reference
|
| YouTube | Promote | FAQ - Help | Links | Disclaimer | Privacy | Feedback | About |
| YouTube | Promote | FAQ - Help | Links | Disclaimer | Privacy | Feedback | About |
Copyright © 1995 - 2025 Free CGI. All rights reserved.