WML » Tags » td

<td> ... </td>

The td tag is used to create a container element to hold a single data cell within a row of a table. The data cell contains data or information that can be composed of letters, images, links, numbers, strings, and text. The data cell can also contain nested tags.

A table element can have one or more number of rows and columns. Consequently, you may place one or more data cells (td elements) in a row (tr element). The data cells in the rows line up vertically to create columns of data. Remember, you must declare the number of columns in your table using the column attribute of the table tag.
The td elements must be nested inside a tr element. The tr elements must be nested inside a table element.
Empty td elements (data cells) are permitted and are not ignored by the browser.
Nested Tags:  a  anchor  b  big  br  em  i  img  small  strong  u


<?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 code shows how to use the td tag to create a table of information.
Language(s): WML

See Also: