Page 103 - DCAP512_WAP_AND_WML
P. 103

Unit 7: Managing Outputs




          The result MIGHT look like this in your mobile phone display (don’t take it for granted that all  Notes
          formatting tags will render as expected):


            ----- Formatting -----
            normal
            emphasized
            strong
            bold
            italic
            underline
            big
            small



          Paragraphs and Line Breaks

          A WML card can be set up to display the paragraph and line break 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=”Paragraphs”>

          <p>
          This is a paragraph
          </p>
          <p>
          This is another<br/>with a line break
          </p>
          </card>

          </wml>
          The result MIGHT look like this in your mobile phone display:

            ------ Paragraphs ------

            This is a paragraph

            This is another
            with a line break

          Self Assessment

          Fill in the blanks:
          1.   A ……………........... element can contain text, markup, links, input-fields, tasks, images
               and more.



                                           LOVELY PROFESSIONAL UNIVERSITY                                   97
   98   99   100   101   102   103   104   105   106   107   108