|
<HTML> <HEAD> <TITLE>ADDING COLOR TO CELLS </TITLE> </HEAD> <BODY> <TABLE Border=5> <TR Bordercolor="Red" Bgcolor="Orange"> <TH>S.NO </TH> <TH Bgcolor="Yellow">Name </TH> <TH>Grades </TH> </TR> </TABLE> </BODY> </HTML> |
The Align attribute aligns the text within the cell either to the left, right, or center. The default alignment of the contents of the table cells is left and vertically centered. If you want to change the alignment of cells, it has to be done individually for each cell.
<TR Align="Right"> Aligns the content of all the cells in a row to the left side(default).If a cell and its row, both include different Align and Valign attribute values, then the cells' specified alognment tag precedence.
|
<HTML> <HEAD> <TITLE>Using Align Attributes. </TITLE> </HEAD> <BODY Bgcolor="Lightyellow"> <TABLE Border=5 bordercolor="Red"> <TR Height=50 align="Center"> <TH>S.NO </TH> |
Learning computers with K ips
| 132 |