Page 203 - DCAP512_WAP_AND_WML
P. 203

Unit 14: Problems for Practice




               <card id=”p3" title=”Ur choice”>                                                 Notes
               <p>
               Your choice is Msc
               </p>
               </card>
               </wml>
          13.  Example of Using Option 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=”card1" title=”Tutorial”>
                   <do type=”accept” label=”Answer”>
                     <go href=”#card2"/>
                   </do>
               <p><select name=”name”>
                     <option value=”HTML”>HTML Tutorial</option>
               <option value=”XML”>XML Tutorial</option>
               <option value=”WAP”>WAP Tutorial</option>
                   </select></p>
                 </card>
               <card id=”card2" title=”Answer”>
                   <p>You selected: $(name)</p>
                 </card>
               </wml>
          14.  Example of Using Image 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 title=”Picture”>
               <p>
               This is an “.wbmp” image
               <img src=”bb.wbmp” alt=”WML Pic|”/>
               </p>
               </card>
               </wml>
          15.  Example of Table 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>


                                           LOVELY PROFESSIONAL UNIVERSITY                                   197
   198   199   200   201   202   203   204   205