Library tutorials & articles

Wireless Markup Language (WML) Tutorial

Tables

The table element may be used to display tabular data. The following attributes may be used with the table element.

Attributes for the table Element
Attribute Description

align

Determines how the table is aligned on the device. The following are the possible options.

  • center
  • left
  • right
<table columns="2" align="center">

columns

Specifies how many columns will be displayed. This is a required field, and cannot be zero.

<table columns="2">

title

Used to specify a title for the table.

<table columns="2" title="Temperatures">

The tr element is used to define a row within the table. The td element is used to define a column within a table. The following example uses a data to display the frequency of radio stations.

stations.wml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Radio Stations">
<p>
    <table columns="2">
    <tr>
        <td>
            Rock FM
        </td>
        <td>
            97.4
        </td>
    </tr>
    <tr>
        <td>
            Jazz FM
        </td>
        <td>
            100.2
        </td>
    </tr>
    <tr>
        <td>
            Wish FM
        </td>
        <td>
            102.45
        </td>
    </tr>
    </table>
</p>
</card>
</wml>

Output From Program

The image shows the screen of a mobile phone with the output from the program.

Comments

  1. 19 Jul 2005 at 12:13

    hi
            I am Jagannath working as Sr.Programmer in Med Write India Ltd. I have one doubt that how to search the latest modified file on the stipulated time and date.If you will help me then i will be happy


    Bye
    Jagannath
    my alternate email address is b_jagan03@yahoo.co.in
    Phno : 09849654314



  2. 16 Feb 2004 at 00:49

    Nice articlae but require more info on this

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Wireless Markup Language (WML) Tutorial.

Leave a comment

Sign in or Join us (it's free).

Gez Lemon I'm available for contract work. Please visit Juicify for details.

Related podcasts

  • EarthClassMail.com - Moving from LAMP to .NET 3.5

    Scott chats with Matt Davis, architect at EarthClassMail.com, about their move from a LAMP stack (Linux/Apache/mysql/PHP) to .NET 3.5. What's working, what's not, and what kinds of issues are they running into as their architect their solution.

Events coming up

  • Dec 3

    The Auckland PHP December meetup

    Auckland, New Zealand

    Topic: Magento E-Commerce platform Speaker: Robert Popovic, LERO9, Robert is the Technical Director and co-founder of LERO9. Robert attended the Electrotechnical Faculty at The University of Belgrade where he graduated with a Masters in Computer Science and Information Technology. Robert has worked exclusively in the field of web and software development throughout his career.

We'd love to hear what you think! Submit ideas or give us feedback