WML TAG:  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
 
Attributes
 
align
The optional align attribute specifies the position of the data or images in the columns. There are four permitted values: C for center alignment, D for default, L for left alignment, and R for right alignment. Obey the upper case. In the US, the default is usually right alignment.
 
class
The optional class core attribute is used to assign one or more classes to the element. Multiple classes are separated by white space. The class name is case sensitive (i.e., Stocks and stocks are not the same).
 
column
The mandatory column attribute specifies the number of columns in a table. It must be an integer greater than zero.
 
id
The optional id core attribute is used to assign an identifying name to a tag. The name must be unique to the entire deck and not just unique to a card. The first character of the name can be any letter or the underscore. The remaining characters can be any combination of letters, numbers, or underscores.
 
title
The optional title attribute provides a string or text used to describe or provide additional information about the link.
 
xml:lang
The optional xml:lang attribute sets the language, such as English or Greek, used in the element. For example, in the U.S. the default value is en-US.
 
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>


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information