Web | This Site

WML Home
WML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# WML <!--...--> Tag

The WML <!--...> tag is used to comment our a portion of WML code.

A comment starts with the four characters <!-- and ends with the three characters --> . Everything that appears between these two markers, including tags, body text, entities, and line breaks, is ignored.

If for some reason you want the sequence <!-- in your body text, write it with an entity (which you would have to do for the < anyway):

&lt;

WML does not allow nesting of comments. This means you can not keep comment inside a comment. The following doesn't work:

<!-- A simple <!-- EMBEDDED COMMENT, NOT! --> comment. -->

Note that the WAP gateway removes all comments as part of its processing, so the browser doesn't even know they exist and there is no effect on traffic due to your comments.

# Attributes:

There is no attribute related to <!--...--> tag.

# Example:

Following is the example showing usage of this element:

    <!-- This will be assumed as a comment -->

A multiline comment can be given as follows:

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

Advertisement

Online Image Processing

Indian Baby Names