Learn HTML Code Tutorial Reference Guide

<TR ...>

Usage Recommendation
use it if you use <TABLE ...>

  • ALIGN: horizontal alignment of cell contents
  • HALIGN
  • VALIGN: vertical alignment of cell contents
  • BGCOLOR: background color
 

<TR ...> designates a table row. Each <TR ...> element contains one or more <TD ...> or <TH ...> elements. For example, this code creates a table with two rows:

<TABLE BORDER CELLPADDING=8>
<TR> <TD>peaches</TD>    <TD>grapes</TD> <TD>oranges</TD> </TR>
<TR> <TD>watermelon</TD> <TD>limes</TD>  <TD>watermelon</TD> </TR>
</TABLE>

which gives us this table

peaches grapes oranges
watermelon limes watermelon

Technically the end tag (</TR>) is optional. However, Netscape has a history of getting confused when the end tag is missing so it's best to always use </TR>.




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial