Page 89 - DCAP512_WAP_AND_WML
P. 89

Unit 6: Card Navigation




          Instead, you should use the tag, which tells the browser to remove the current page and display  Notes
          the previous page in the history list (like using the Back button on a PC browser). Of course, the
          content of the previous page might need to be refreshed each time it’s accessed; in that case, valid
          techniques could include recalling the whole deck or specifying that the page not be cached.
          Proper navigation will be covered in future articles.
                   Figure 6.5: The <prev>  tag “pops”  the top  Card off  the Stack  (out of  the
                       history  list),  Redisplaying  the  Previous Card  in the  History
















          6.6 Core Elements of a WML Deck

          Table 6.1 lists out the core elements of a WML Deck.

                                             Table  6.1

             Element    Purpose
             <wml>      Defines the deck and covers all information and cards.
             <head>     Comprises information relating to the entire deck.
             <card>     A deck is comprised of one or more cards. Each card contains text and input.
             <template>   Declares properties to apply to all cards in the deck. Many be overridden.

          Text Formatting Tags

          The Text Formatting Tags are listed in Table 6.2.

                                             Table  6.2

                        Tag       Purpose
                        <p>       New paragraph. Can comprise of other attributes.
                        <br/>     Starts a new line within a paragraph.
                        <em>      Emphasis
                        <strong>   Strong emphasis
                        <b>       Bold font
                        <i>       Italic font
                        <u>       Underline font
                        <big>     Large font
                        <small>   Small font

          We can add comments any where in our WML documents, when they are never used by the
          browser or seen by the user. They can also provide useful information for developers.




                                           LOVELY PROFESSIONAL UNIVERSITY                                   83
   84   85   86   87   88   89   90   91   92   93   94