WML Tables - WML

What are WML tables?

The <table> element along with <tr> and <td> is used to define a table in WML. WML never support the nesting of tables
A <table> element can be used to add 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 (2)

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

WML Topics