WML <tr> Tag


        Advertisements

        The <td> element defines a table row.

        This element can contain only <td> elements, giving the cells within the row. It's legal for a <tr> element to contain no <td> elements or only empty ones. This indicates an empty row in the table.

        Attributes:

        This element supports the following attributes:

        AttributeValueDescription
        classstringSets a class name for the element.
        idelement IDA unique ID for the element.

        Example:

        Following is the example showing usage of this element:

        <?xml version="1.0"?>
        <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
        "http://www.wapforum.org/DTD/wml12.dtd">
        
        <wml>
        
        <card title="WML Tables">
        <p>
        <table columns="3" align="LCR">
        	<tr>
        	  <td>Col 1</td>
        	  <td>Col 2</td>
        	  <td>Col 3</td>
        	</tr>
        
        	<tr>
        	  <td>A</td>
        	  <td>B</td>
        	  <td>C</td>
        	</tr>
        
        	<tr>
        	  <td>D</td>
        	  <td>E</td>
        	  <td>F</td>
        	</tr>
        </table>
        </p>
        </card>
        
        </wml>
        
        

        This will produce the following result:

        WAP Example 5
        Advertisements