WML table Tag - WML

what is WML <table> Tag?

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

A <table> tag can be included with-in <p>...</p> elements.


The <table /> element supports the following attributes:

Attribute Value Description
columns number Sets 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 thealignattribute to LCR.

xml:lang language_code Sets the language used in the element
class class data Sets a class name for the element.
id element ID A unique ID for the element.


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

This will produce the following result:

wap-example5 (3)

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WML Topics