WML Tutorial 14:WML Text Processing

Source: Internet
Author: User
Tags add character set reserved
Tutorial WML uses the XML document character set, currently supports Unicode 2.0, and unlike HDML, all the labels, attributes, and specified acceptable values for WML must be lowercase, and the card's name and variable are case-sensitive. As with HDML, only one space is displayed for consecutive null characters. The value of the attribute within the label must be enclosed with "or", and there should be no space between the property name, = and the value. For a label that does not appear, it must be added before >, such as <br/>.

Reserved characters
In the processing of reserved characters is also basically the same, the corresponding substitution characters are:

< <
> >
'     '
"     "
& &
$     $$
Space
-     ­

It is important to note that the & of the connection parameters must be converted to & during the URL transfer process.

Blank Handling
The way WML handles white space inherits from XML, the browser proactively ignores all meaningless spaces and properties, and consecutive spaces are compressed.

Word processing Features
WML also provides some character processing functionality, but not all phones support these features.
<em> Emphasis
<strong> aggravation
<i> Italic character
<b> bold Words
<u> Underline
<big> add a number to the font
<small> font reduction of a number

The browser usually automatically applies <em> or <strong> functions when working with text links, but <i><b><u> must be called specifically, otherwise it will not be used by default in any case.

Paragraph
WML offers two kinds of paragraphs wrap or nowrap, when we chose NoWrap, we had to make sure that the client device had the ability to read without folding the information of the President, and that the phone usually had this function, and that different mobile phones were handled differently.

<p align= "left | Center | Right "mode=" wrap | NoWrap ">

Break a break by force
<br/>
Be sure to add a diagonal line at the back. If there are multiple <input> or <select> in the form, do not use <br/>. Because the links to WML are in menu mode, there is no need to add <br/> to multiple consecutive links.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.