Attributes for <TR ...>
ALIGN = LEFT | CENTER | RIGHT
HALIGN = LEFT | CENTER | RIGHT
ALIGN sets the horizontal alignment of the cells in the row. One of the most common situations where ALIGN is useful is when you have a row of table headers that you want to align left with the text instead of being centered. So, for example, this code sets the first row of cells to align left:
<TABLE BORDER>
<TR ALIGN=LEFT> <TH>Fruit</TH> <TH>State</TH> </TR>
<TR> <TD>watermelon</TD> <TD>Georgia</TD> </TR>
<TR> <TD>apples</TD> <TD>Washington</TD> </TR>
</TABLE>
which gives us this table:
Fruit | State |
watermelon | Georgia |
apples | Washington |
HTML 4.0 says that HALIGN sets the horizontal alignment of the cells, but HALIGN is currently poorly supported by the browsers while ALIGN is well supported. Stick to ALIGN for now.
|