Page 105 - DCAP512_WAP_AND_WML
P. 105

Unit 7: Managing Outputs




                                                                                                Notes


             Notes  The user agent must insert a line break  into the text flow between significant p
             elements.

          7.2.2 Line Break

          <br/> is the line breaking tag in WML, which is the same as that in HTML. The following WML
          example demonstrates the usage of line breaks:
          (lineBrEg1.wml)
          <?xml version=”1.0"?>
          <!DOCTYPE  wml  PUBLIC  “-//WAPFORUM//DTD  WML  1.3//EN”  “http://
          www.wapforum.org/DTD/wml13.dtd”>
          <wml>
            <card id=”card1" title=”Line Break”>

              <p>
                Before br<br/>After br
              </p>
            </card>

          </wml>
          The screenshots below show  the result  of the  above WML  example in some mobile  phone
          browsers. As you can see, the text after the <br/> tag starts on a new line.





















               Sony Ericsson T610        Sony Ericsson T68i     Nokia Mobile Browser 4.0

          7.2.3 Tables


          A WML card can be set up to display the table 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”>




                                           LOVELY PROFESSIONAL UNIVERSITY                                   99
   100   101   102   103   104   105   106   107   108   109   110