
Opening tag : <TR>
Closing tag: </TR>
Purpose:
Defines a cell in a table - used alongside the TR tag to layout a table.
Attributes:
Align=alignment
- Defines the horizontal alignment of the contents of the cell. Options are LEFT, RIGHT, CENTER or JUSTIFY.
Background=url
- Specifies the url of an image to use as the background of a cell.
Bgcolor=color
- Specifies a color for the cell.
Bordercolor=color
- Specifies the color of the border of the cell.
Bordercolordark=color
- Specifies one color of a border, in the case that it is 3d.
Bordercolorlight=color
- Specifies the other color of a border, in the case that it is 3d.
Class=class
- Format the text in style of the specified class.
Dir=direction
- Useful for languages which should be read from right to left.
Event=Javascript
- Assigns some javascript to an event.
Id=name
- Assigns an ID to the cell, to allow it be referenced or manipulated by a script.
Lang=language
- Specifies the language of the text within the cell.
Nowrap
- Stops the text from wrapping to a new line.
Style=style
- Applies a style to the cell, overwriting other styling instructions.
Title=title
- Specifies a title for the cell.
Valign=#
- Specifies the vertical alignment for the text in the cell. Choices are, BASELINE, BOTTOM, MIDDLE and TOP.
Example:
<Table>
<TR>
<TD> Width="50%"</TD>
<TD> Width="25%"</TD>
<TD> Width="25%"</TD>
</TR>
<TR>
<TD> Width="50%"</TD>
<TD> Width="25%"</TD>
<TD> Width="25%"</TD>
</TR>
</Table>
Related Tags:
<Caption></Caption> - Caption Tag.
<Col></Col> - Col Tag.
<Colgroup> - Colgroup Tag.
<Table></Table> - Table Tag.
<TD></TD> - Table Down Tag.
Back to:
Alphabetical Guide
Guide By Type