WML <table> Tag

        The <table> element along with <tr> and <td> is used to create a table in WML. WML does not allow the nesting of tables

        A <table> element should be put with-in <p>...</p> elements.


        The <table /> element supports the following attributes:

        columnsnumberSets the number of columns in the table
        • L

        • C

        • R

        To specify the horizontal text alignment of the columns, you need to assign three letters to the align attribute. Each letter represents the horizontal text alignment of a column. The letter can be L, C, or R. For example, if you want the following settings to be applied to your table:
        • First table column -- Left-aligned

        • Second table column -- Center-aligned

        • Third table column -- Right-aligned

        Then you should set the value of the align attribute to LCR.

        xml:langlanguage_codeSets the language used in the element
        classclass dataSets a class name for the element.
        idelement IDA unique ID for the element.


        Following is the example showing usage of <table> element.

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        <card title="WML Tables">
        <table columns="3" align="LCR">
        	  <td>Col 1</td>
        	  <td>Col 2</td>
        	  <td>Col 3</td>

        This will produce the following result:

        WAP Example 5