Page 102 - DCAP512_WAP_AND_WML
P. 102

WAP & WML




                    Notes          </card>
                                   </wml>
                                   The result  MIGHT look  like this in your  mobile phone display (note  that only one card is
                                   displayed at a time):

                                     ------ Card 1 ------

                                     Hello World!




                                      Task  Cards can be related to each other with links. Explain and analyze with a proper
                                     example

                                   7.1.2 Paragraph of Text Formatting Option


                                   Text Formatting

                                   A WML card can be set up to display the text formatting 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=”Formatting”>

                                   <p>
                                   normal<br/>
                                   <em>emphasized</em><br/>
                                   <strong>strong</strong><br/>

                                   <b>bold</b><br/>
                                   <i>italic</i><br/>
                                   <u>underline</u><br/>
                                   <big>big</big>

                                   <br/><small>small</small>
                                   </p>
                                   </card>
                                   </wml>




                                     Did u know?  What is the definition of <p> element?
                                     The <p> element defines a paragraph of text and WAP browsers always render a paragraph
                                     in a new line. A <p> element is required to define any text , image or a table in WML.



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