Senin, 18 Juli 2011

WML 4

Comments in WML

Comments are placed inside <!-- --> in WML. This is the same as HTML. For example, the following lines are comments. WAP browsers ignore all comments.

<!-- This is a comment in WML -->
<!-- This is a multi-line
     comment -->

Line Breaking in WML

<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:

<?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


Free Template Blogger collection template Hot Deals BERITA_wongANteng SEO theproperty-developer

0 komentar:

Poskan Komentar

"my facebook"