Page 1/6 of the WAP website WML language syntax tutorial

Source: Internet
Author: User

After the establishment of the WAP server and the installation of the WAP browser, we can use the WML language to write WAP web pages or applications and debug them through the WAP Server and browser. Starting from this chapter, we will systematically learn the WML language. This chapter mainly describes the basic knowledge of the WML language, and the next chapter comprehensively describes the WML syntax, labels, and rules.
Simple examples and editing and testing methods of 2.1 WML
The unlimited Markup Language (WML) is a Language based on the Extension Markup Language (XML), and is a subset of XML. It can display a variety of text, images and other data, is proposed by the WAP Forum (http://www.wapforum.org) and designed for wireless device users to provide interactive interface, the current version is 1.1. These wireless devices include mobile phones, pagers, and Personal Digital Assistant PDA (Personal Digital Assistants.
2.1.1 WML and WAP Devices
To better understand and use the WML language, developers should have a rough understanding of the features and features of the devices and devices supporting WML.
Generally, WML wireless devices have the following features:
It is smaller than ordinary personal computers;
The device memory is limited, and its CPU performance is also limited;
The communication bandwidth is narrow and the latency is long.
Taking mobile phones and PDAs as an example, devices that support WML have the following features:
There is a display screen, which can be displayed 2. malicious website? 2 characters each; 2. What is the site type 0? Br> supports numbers and characters;
Allows the operator to use arrows or numeric buttons for selection;
Supports printable ASCII codes;
Usually there are two Programmable function keys, the Accpet key and the Options key, which are usually arranged below the screen near the keyboard;
Usually there is a Prev navigation key.
The purpose of introducing the WAP device used by WML is to let readers know the features of the WML language through the features and features of the WAP device, then, I have a rough understanding of the problems to be solved in WML programming.
2.1.2 use a text editor to write the WML Program
You must use an editor to edit a WAP webpage or application in WML. Similar to HTML programming, WML programs are also pure file text, which can be compiled using any text editor, such as "NotePad" in Windows. You can also use software such as Nokia WAP Toolkie (the specific usage will be mentioned later ). First, we will introduce the first method, and then the second method.
If you want to use "NotePad" to write WML programs, you can click the "Start" button in the Windows system, and then from the menu that appears, point the cursor to "program", "attachment", and "Notepad" in sequence, and start the "Notepad" program. The edit window appears on the screen, from which you can enter and write the WML program.
For example, we can enter the following simple program.
<? Xml version = "1.0"?>
<! DOCTYPE wml PUBLIC "-// wapforun // dtd wml 1.1 //" http://www.wapforum.org/DTD/wml_1.1.xml ">
<Xml>
<Card id = "card1" title = "Title">
<P>
<! -- Write your card implementation here. -->
Hello World !!
</P>
</Card>
</Xml>
Save it as a hello. xml file. Note that the file extension should be xml rather than txt.

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.