Page 92 - DCAP512_WAP_AND_WML
P. 92

WAP & WML




                    Notes


                                     Notes  HTML browsers use  it as  both.  Other  wireless browsers  ignore the  attribute
                                     completely.
                                   The Newcontext Attribute
                                   The newcontext attribute

                                      is optional
                                      stays “false” (default) if not changed
                                      causes the browser to reformat; clears all variables from the previous cards

                                      clears browser history
                                   The default is “false”.
                                   When “true” is specified, a new browser context is created which clears the navigation history
                                   and any defined variables. This allows us to start with a known state where only the current card
                                   appears in the history stack.




                                      Task  What are the various ways in which navigation can happen?

                                   6.6.2 Text Formatting

                                   A WML card can be set up to display the text formatting functions of 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="Formatting">

                                   <p>
                                   normal<br/>
                                   <em>emphasized</em><br/>
                                   <strong>strong</strong><br/>

                                   <b>bold</b><br/>
                                   <i>italic</i><br/>
                                   <u>underline</u><br/>
                                   <big>big</big><br/>

                                   <small>small</small>
                                   </p>
                                   </card>
                                   </wml>




          86                                LOVELY PROFESSIONAL UNIVERSITY
   87   88   89   90   91   92   93   94   95   96   97