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 (ExpandCollapse)

What do you think about this web page?

(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page