- Description
- Is aimed for creating the one cell of the table. Tag <TD> must be located in the package <TR>, which is located in the tag <TABLE>..
-
<table> <tbody> <tr> <td>...</td> </tr> </tbody> </table>
- Parametrs
- Align defines horizontal alignment of the content of the cell
- Background sets the background image in the cell
- Bgcolor background colour of the cell
- Bordercolor colour of the border
- Colspan combines horizontal cells
- Height height of the cell
- Nowrap disables the line folding
- Rowspan combines vertical lines
- Valign vertical alignment of the content of the cell
- Width width of the cell
- Closing Tag
- Is not optional
-
The Description of Tag <TD> Parameters
- ALIGN Parameter
- Description
- Defines horizontal alignment of the content of the cell.
-
...
- 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
- BACKGROUND Parameter
- Description
- Defines the image, which will be used as a background image of the table cell. In contrast to regular images, width and height are not defined for the background. While choosing the background image, make sure the adequate contrast is set between it and the content of the web page. Animated images in GIF format can be used as a background, but they distract the reader’s attention.
-
...
- Arguments
- Any acceptable address of the image – full or absolute way can be used.
- Default value
- No
- Analogue CSS
- Background-image
- BGCOLOR Parameter
- Description
- Defines the background colour of the cell.
- Arguments
-
...
- 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
- BORDERCOLOR parameter
- Description
- Defines the border colour around the cell. The border is shown in case the BORDER parameter with the nonzero value in the tag <TABLE> is defined.
-
...
- Arguments
- See BGCOLOR parameter
- Default value
- Depends on the browser and operating system
- COLSPAN Parameter
- Description
- Defines the number of lines, which must be combined horizontally. This parameter makes sense for tables, which consist of several lines.
-
...
- Arguments
- Any positive integer which is more than 1
- Default value
- 1
- HEIGHT Parameter
- Description
- Browser defines the height of the table and its cells according to their content. But the height will be changed while using the HEIGHT parameter.
-
...
- Arguments
- Any positive integral value in pixels or percents from the acceptable space.
- Default value
- The height is determined on basis of the table content
- Analogue CSS
- Height
- NOWRAP Parameter
- Description
- The adding of NOWRAP parameter to the tag <TD> makes the text in the cell be displayed without hyphenation. The incorrect use of this attribute may cause the table to be too wide. As a result horizontal scroll bar will appear.
-
...
- Arguments
- No
- Default value
- Parameter NOWRAP is disabled by default.
- Analogue CSS
- White-space
- ROWSPAN Parameter
- Description
- Defines the number of cells, which must be vertically combined. This parameter makes sense for tables, which consist of several lines.
-
...
- Arguments
- Any integer, which is more than 1.
- Default value
- 1
- VALIGN Parameter
- Description
- Defines vertical alignment of the content of the cell.
-
...
- Arguments
- Top top alignment of the content of the cell
- Middle middle alignment
- Bottom bottom alignment
- Baseline base line alignment
- Default value
- Middle
- Analogue CSS
- Vertical-align
- WIDTH Parameter
- Description
- Defines the width of the cell.
-
...
- Arguments
- Any positive integral value in pixels or percents from the acceptable space.
- Default value
- The width is determined on basis of the cell’s content.
- Analogue CSS
- width


