Home | Contact Us | Forums   
     
 
 
 
 

Reference Page.

This is a more detailed list of tags and attributes used with the table tag.

<table>

align=left,right,center
This aligns the table. The default alignment is left.

background=url,path
This can be either a url or relative path. Remember that the image will be tiled if the table is larger than the image.

bgcolor=#000000
This can be either a hex value or color name. It is better practice to use the hex value.

border=pixels
This sets the border width in pixels. A border width of 0 turns the border off.

cellpadding=pixels
Amount of space between cellborder and its contents. The default value is 1.

cellspacing=pixels
This sets the abmount of spae between table cells. The default value is 2.

frame=void,above,below,hsides,lhs,rhs,vsides,box,border
void-the frame does not show (default)
above-top only
below-bottom only
hsides-top and bottom only
vsides-left and right only
lhs-left side only
rhs-right side only
box-all 4 sides
border-all 4 sides

height=pixels, percent
This specifies the height of the table. It can be in either pixel height or a percentage of the available space.

hspace=pixels
Puts a space around the table.

rules=all,cols,groups,none,rows
none-no rules (default)
groups-rules appear between groups
rows-rules appear between rows only
cols-between columns only
all-between all

sumary=text
This will provide a summary for non-table-ready browsers.

vspace=pixels
Sets a number of pixels above and below a table.

width=pixels, percent
Same as height execpt applies to width.

The following attributes apply to IE 2.0 and higher only.

bordercolor=#000000
Sets the color of the border.

bordercolorlight=#000000
Sets the color of the light shade for a 3-D border.

bordercolordark=#000000
Sets the color of the dark shade for a 3-D border.

<tbody>
Defines a row or group of rows as the body of the table.

align=left,right,center
This aligns the table. The default alignment is left.

char=character
Specifies a character along which the contents will be justified.

charoff=length
Distance to the first alignment character.

valign=top, middle, bottom, baseline
Vertical alignment of the tbody.

<td>

align=left,right,center
This aligns the table. The default alignment is left.

background=url,path
This can be either a url or relative path. Remember that the image will be tiled if the table is larger than the image.

bgcolor=#000000
This can be either a hex value or color name. It is better practice to use the hex value.

colspan=number
Sets the number of cells this cell spans.

height=pixels, percent
This specifies the height of the table. It can be in either pixel height or a percentage of the available space.

nowrap
Disables automatic word wrap.

rowspan=number
The number of rows this cell spans.

valign=top, middle, bottom, baseline
Specifies the vertical alignment of the cell.

width=pixels, percent
Same as height execpt applies to width.

The following attributes apply to IE 2.0 and higher only.

bordercolor=#000000
Sets the color of the border.

bordercolorlight=#000000
Sets the color of the light shade for a 3-D border.

bordercolordark=#000000
Sets the color of the dark shade for a 3-D border.