Welcome to Developer's Home Sunday, April 20, 2014
Home - DevelopersHome.com

Comments in WML


Preferences - Do not show ads

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:


(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


Page 9 of 50 Previous Page | Next Page
Contents at a Glance
Print this Web Page | | Back to Top
Custom Search

Feedback Form (Expand)

What do you think about this web page?






WML Tutorial Table of Contents WML Tutorial Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Previous Page Next Page