Thursday, February 19, 2009

TR tag

Description

Defines a row in a table. It is used within the TABLE tag. The TD tag is used within it to define a cell.
Attributes
ALIGN

Aligns the text for the cells in the row - set to either 'left', 'center', 'justify' or 'right'.
BACKGROUND

Sets the background picture for the cells in the row. To show to an image on the same site use the local path e.g. src="button.gif" or src="folder/photo1.jpg". You can also use dots to link to an image in the parent folder e.g. src="..\diagram.png".
BGCOLOR

Specifies the background colour of the cells in the row. If the BACKGROUND attribute is also used, the image will cover the background colour unless the background image contains transparent areas.

Colours can be defined in this format: #RRGGBB where the values are in hexadecimal format. E.g. #FF0000 is red. Colours can also be defined with words e.g. red.
VALIGN

Vertically aligns the text for the cells in the row - set to either 'baseline', 'bottom', 'middle' or 'top'.

No comments:

Post a Comment