WML » Tags » table

<table> ... </table>

The table tag is used to designate that this element is a table. A table is a structured presentation of data cells using rows and columns.The data cells contain data or information that can be composed of letters, images, links, numbers, strings, and text that you wish displayed in the table.

The exact presentation of the table in the display will be browser dependent.
In WML, a table element is column centric. You must declare the number of columns in the rows using the mandatory column attribute. A value of zero is not permitted. If you declare too few columns, the extra columns may be combined together in the last column. If you declare too many columns, blank columns may be used to pad the table.
Unlike in HTML, the contents of a WML table element are not enclosed by borders or lines.
The default in the US is to display the columns in a left to right orientation. However, depending on the language specified in the optional xml:lang attribute, the orientation may be right to left.
A table element cannot contain other table elements. The rows and columns of the table are constructed using the tr and td tags.
Nested Tags:  tr


<?xml version="1.0"?>
<card id="card1" title="card 1">
Text preceding the table.
<table title="Table Example" columns="3" align="C">
<td>Row 1 Col 1</td>
<td>Row 1 Col 2</td>
<td>Row 1 Col 3</td>
<td>Row 2 Col 1</td>
<td>Row 2 Col 2</td>
<td>Row 2 Col 3</td>
Text following the table.

This example shows how to use the table tag to create a table of information.

Language(s): WML

See Also: