- WML Tutorial
- WML - Home
- WML - Overview
- WML - Environment
- WML - Syntax
- WML - Elements
- WML - Comments
- WML - Variables
- WML - Formatting
- WML - Fonts
- WML - Images
- WML - Tables
- WML - Links
- WML - Tasks
- WML - Inputs
- WML - Submit Data
- WML - Server Scripts
- WML - Events
- WML - Timer
- WML - Template
- WML - DTD
- WML2 - Tutorial
- WML References
- WML - Entities
- WML - Tags Reference
- WML Tools
- WAP - Emulators
- WML - Validator
- WML Useful Resources
- WML - Quick Guide
- WML - Useful Resources
- WML - Discussion
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 the following result:
Advertisements
To Continue Learning Please Login
Login with Google