5. 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 -->

6. 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">

  <card id="card1" title="Line Break">
      Before br<br/>After br

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

Previous Page Page 9 of 50 Next Page

Feedback Form (Expand)

What do you think about this web page?

WML Tutorial - Table of Contents WML Tutorial - Contents at a Glance Preferences - Light mode / Dark mode Preferences - Do Not Show Ads Previous Page Next Page