Tag TBODY

Tag TBODY


Description
This element is used to store one or several lines of the page. It allows creating the structure blocks. The common design via styles and control of their shape via scripts can be applied to such blocks.
It is allowed to apply several tags in the package <TABLE>.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<table>
    <thead>
        ...
    </thead>
    <tfoot>
        ...
    </tfoot>
    <tbody>
        <tr>
            <td>
                ... 
            </td>
        </tr>
    </tbody>
</table>

Parametrs
Align
defines the text alignment in the line
Bgcolor
background colour of the cells, which are located in the package <TBODY>
Valign
vertical alignment of the content of the cells

Closing Tag
Is not optional.
The Description of Tag <BODY> Parameters

ALIGN Parameter

Description
Defines the horizontal alignment of the content of the cells, which are located in the element <TBODY>. If it is required to apply the different alignment for each line, use the styles and align parameter for tag <TD> or <TH>.
1
<tbody align="left | center | right | justify">...</tbody>

Arguments
Left
left alignment of the table
Center
center alignment of the table
Right
right alignment of the table
Justify
justified alignment

Default value
Left

Analogue CSS
Text-align

BGCOLOR parameter

Description
Defines the background colour of the cells, which are located in the package <TBODY>.
1
<tbody bgcolor="colour">...</tbody>

Arguments
The meaning of the colour can be defined in two ways.
1
<table bgcolor="colour">...</table>
The colour value can be defined in two ways.
    1. By its title.
    Browsers support some colours by their titles.
    2. By hexadecimal value.
    The numbers in the hexadecimal code are used for defining the colours. Hexadecimal system is based on the number 16. The numbers will be the following: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. The numbers from 10 to 15 are substituted for Latin letters. The numbers more than 15 in hexadecimal system are formed by addition two numbers to one.

Default value
Depends on the browser and its version, the white colour is used usually.

Analogue CSS
Background-color

VALIGN Parameter

Description
Defines vertical alignment of the content of the cells in the package <TBODY>.
1
<tbody valign="top | middle | bottom | baseline">...</tbody>

Arguments
Top
top alignment of the content of the cells
Middle
middle alignment
Bottom
bottom alignment
Baseline
base line alignment
Any positive integer

Default value
Middle

Analogue CSS
Vertical-align