1.

Explain the attributes of <TH> and <TD>?

Answer»

1. Align: It specifies the horizontal alignment of the content, the values can be left, right, center and justify.

2. Valign: It specifies the vertical alignment of the content, the values can be top, middle, Bottom, and baseline.

3. Bgcolor: It specifies the background colour for the cell.

4. Colspan: It is used to span or to stretch a cell over a number of columns. 

Eg: <TD Colspan=3> spans the cell over three columns

5. Rowspan: It is used to span or to stretch a cell over a number of rows.

Eg: <TD Rowspan=3> spans the cell over three rows.



Discussion

No Comment Found