Page 77 - DCAP512_WAP_AND_WML
P. 77

Unit 6: Card Navigation




          6.3 Tags Used in Navigation                                                           Notes

          Links use the familiar <a> tag or the <anchor> tag with a ”go” task. (The anchor tag may also
          have the tasks ”prev” and ”refresh.”) Here’s an example of both types of links. To link to another
          card in the same deck, the # is used.




             Notes  Note that the new card is created within the same file as the first card in the deck.


                 Example:






































          <?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=”My First Ever WML Card”>
          <p>I made a WML card! Woo Hoo!</p>
          <p><a href=”somewhere.wml”>Get Somewhere</a></p>
          <p>

          <anchor>New page
          <go href=”new.wml”></anchor>




                                           LOVELY PROFESSIONAL UNIVERSITY                                   71
   72   73   74   75   76   77   78   79   80   81   82