218 users online (0 members and 218 guests)  


  HTML Table Row Tag





Tables read the information by rows, row by row. So, there is a <tr> tag that starts a row in the table.


Here is an example


<tr bgcolor="#FFFFFF" align="middle" valign="top">


This tag is often left empty, without attributes, because people usually put the information in each of the table cells themselves. Any attributes assigned values will hold true in the entire row.


Here are the possible attributes

  • bgcolor - Sets the background color for the entire row

  • align - Sets the justification of all the cells in the row (can be "left", "right", or "center")

  • valign - Sets the vertical justification of all the cells in the row (can be "top", "middle", "bottom", or "baseline")


* = mandatory


To end a row, use this tag </tr>


Back to the HTML menu.