Page 200 - DCAP512_WAP_AND_WML
P. 200
WAP & WML
Notes <card id=”XML” title=”XML Tutorial”>
<p>Our XML Tutorial is an award winning
tutorial from W3Schools.</p>
</card>
</wml>
6. Example of My First Card In WML
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<wml>
<card title=”First Page”>
<p>
Hello Everybody
</p>
</card>
</wml>
7. Example of Using OPTGROUP Tag In WML
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<wml>
<card id=”one”>
<p>
<select name=”choice”>
<optgroup title=”food”>
<option>Chinease</option>
<option>Indian</option>
</optgroup>
<optgroup title=”Cold Drink”>
<option>Coke</option>
<option>Pepsi</option>
<option>Fanta</option>
</optgroup>
<optgroup title=”Ice Cream”>
<option>Strawberry</option>
<option>Venilla</option>
</optgroup>
</select>
</p>
8. Example of DECK (Multiple Cards) In WML
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
194 LOVELY PROFESSIONAL UNIVERSITY