相關屬性:
title 標題
綜合示例:
<?XML version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.XML">
<wml>
<template>
<do type="options" label="Back">
<prev/>
</do>
</template>
<card id="fIElds">
<p> FIEld Type:
<select title="FIEld type">
<option onpick="#nested">Nested</option>
<option onpick="#passWord">PassWord</option>
</select>
</p>
</card>
<card id="nested">
<onevent type="onenterbackward">
<prev/>
</onevent>
<do type="accept" label="Done">
<go href="#done"/>
</do>
<p>
<fIEldset title="name">
First Name:
<input title="First" name="fname"/>
Last Name:
<input title="Last" name="lname"/>
</fIEldset>
Gender:
<select title="Gender" name="gender">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</p>
</card>
<card id="done">
<p> $fname $lname is a $gender. </p>
</card>
<card id="passWord">
<onevent type="onenterbackward">
<prev/>
</onevent>
<do type="accept" label="Done">
<go href="#passwd_done"/>
</do>
<p> Input a passWord:<br/>
Min 3 chars.
<input title="Password" name="passwd" type="passWord" format="*m"/>
</p>
</card>
<card id="passwd_done">
<p> PassWord was $passwd. </p>
</card>
</wml>