<tr>
Description
This element creates a single row inside a <table> element. In turn, the cells in each row are created by the <td> element.
Example
<html>
<body>
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
</body><!-- ww w .j a v a2 s.co m-->
</html>
The code above generates the following result.
rowspan attribute
The integer value of this attribute determines how many table rows a cell spans.
<html>
<body>
<table border="1">
<tr>
<th rowspan="2">Cell 1</th>
<th>Cell 2</th>
<th rowspan="3">Cell 3</th>
<th>Cell 4</th>
<th>Cell 5</th>
</tr>
<tr>
<th rowspan="3">Cell 7</th>
<th rowspan="2">Cell 9</th>
<th>Cell 10</th>
</tr>
<tr>
<th>Cell 6</th>
<th>Cell 11</th>
</tr>
<tr>
<th>Cell 12</th>
<th>Cell 8</th>
<th>Cell 13</th>
<th>Cell 14</th>
</tr>
</table>
</body><!--from ww w.j a v a 2 s. co m-->
</html>
The code above generates the following result.