Page 83 - DCAP512_WAP_AND_WML
P. 83

Unit 6: Card Navigation




          Text Formatting Tags                                                                  Notes

           Start tag       Purpose                                              WML
           <b>             Defines bold text                                    1.1
           <big>           Defines big text                                     1.1
           <em>            Defines emphasized text                              1.1
           <i>             Defines italic text                                  1.1
           <small>         Defines small text                                   1.1
           <strong>        Defines strong text                                  1.1
           <u>             Defines underlined text                              1.1

          Anchor Elements


           Start tag       Purpose                                              WML
           <a>             Defines an anchor (a link)                           1.1
           <anchor>        Defines an anchor (a link)                           1.1

          Self Assessment

          Fill in the blanks:

          5.   A hot spot is a ………………….. area on screen that directs navigation or other actions.
          6.   To link to another card in the same deck, the ………………….. is used.
          7.   The first card has a ………………….. element that defines an event to be triggered.
          8.   The ………………….. can vary considerably from one device to another.

          6.4 Using Phone Buttons and Functions Keys

          Now let us introduce to you another useful element in WML — the <do> element. The <do>
          element is used to associate a task to a certain user interface element of a wireless device. The
          task will be done if the user activates the user interface element. The mapping between a <do>
          element and a user interface element depends on the actual wireless device. The WAP specification
          states that the user interface element may be a softkey, a function key, a voice-activated command,
          etc.  In mobile  phones, <do> elements are  very often associated to softkeys or  items in  the
          options menu that is brought up by pressing a softkey. To program softkeys of mobile phones,
          we need to know how to use the <do> element.
          The <do> element is not difficult to use. Tasks such as <go>, <prev> and <refresh> are enclosed
          in the <do></do> tags. The name attribute of <do> specifies a unique name to a <do> element.



             Did u know?  What does the label attribute specifies?
             The label attribute specifies the label to be displayed on the wireless device’s screen (if
             applicable).
          The number of characters in a label should be equal to or smaller than six if you want it to be
          displayed nicely on different types of wireless device. If a label is too long, it may be truncated
          on some wireless devices.



                                           LOVELY PROFESSIONAL UNIVERSITY                                   77
   78   79   80   81   82   83   84   85   86   87   88