SoFunction
Updated on 2025-04-14

Overview and basic rules of WML learning

Overview
WML (Wireless Markup Language - Wireless Markup Language) is a descriptive language that we often hear about, and both belong to the XML family. We can read content written in HTML on our PC using browsers such as IE or Netscape, while files written in WML are specially used to display on some wireless terminal display screens such as mobile phones for people to read. They can also provide users with human-computer interaction interfaces, accept information such as queries entered by users, and then return the final information they want to obtain to the user.

Basic rules
* WML uses XML document character sets and currently supports Unicode 2.0. Unlike HDML, all tags, properties and specified receiveable values ​​of WML must be lowercase, and CARD names and variables are also case sensitive. Like HDML, only one space is displayed for consecutive null characters. The value of the attribute in the tag must be enclosed with "or', the attribute name, = cannot have spaces between the value. For labels that do not appear in pairs, they must be added before  > , for example<br/>. In terms of reference to variables and HDML, there are:
 $(var1:esc)
 $(var1:noesc)
 $(var1:unesc)
For three forms, please refer to the relevant section of HDML above. The processing of reserved characters is basically the same, and the corresponding substituted characters are:
 < &lt;
 > &gt;
 ' &apos;
 " &quot;
 & &amp;
 $ $$
Spaces &nbsp;
 - &shy;
It should be pointed out here that during the URL delivery process, the & used to connect parameters must be converted into &amp;.