WML » Tags » tr

Syntax:
<tr> ... </tr>

The tr tag is used to create a row in a table element. You can create as many rows as you wish.

Each row (tr element) can contain one or more data cells. Each data cell is a td element that can contain data composed of letters, images, links, numbers, strings, and text that you wish displayed in the table.
 
A tr tag should never appear inside of a td element or another tr element.A row composed of empty data cells (td elements) is permitted and will be recognized by the browser.
 
Nested Tags:  td

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="card 1">
<p>
Text preceding the table.
</p>
<p>
<table title="Table Example" columns="3" align="C">
<tr>
<td>Row 1 Col 1</td>
<td>Row 1 Col 2</td>
<td>Row 1 Col 3</td>
</tr>
<tr>
<td>Row 2 Col 1</td>
<td>Row 2 Col 2</td>
<td>Row 2 Col 3</td>
</tr>
</table>
</p>
<p>
Text following the table.
</p>
</card>
</wml>
Explanation:

This code demonstrates the use of th tr tag to display a table of information.

Language(s): WML

See Also: