Web | This Site

WML Home
WML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# WML <td> Tag

The <td> element encloses a single cell within a table.

It may appear only inside a <tr> element. It takes no attributes and may contain the following: flow text; images using the <img> element; text style changes using the <em>, <strong>, <b>, <i>, <u>, <big>, and <small> elements; and anchored text using the <a> or <anchor> elements.

An empty <td> element, or one containing only whitespace, is legal and significant.

# Attributes:

This element supports the following attributes:

Attribute | Value | Description
--- | --- | ---
xml:lang | language_code | Sets the language used in the element
class | string | Sets a class name for the element.
id | element ID | A 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 following result:

Advertisement

Online Image Processing

Indian Baby Names