Very good WAP FAQ (ii) 1th/3 page _WML Tutorial

Source: Internet
Author: User
Tags html page html tags
WAP FAQ (ii)
Ii. Common questions and answers about WML
1. What does WML mean?
WML represents "Wireless Markup Language". WML is the Wireless Markup Language (Wireless Markup Language), a micro-browser that is placed inside a mobile device to interpret the markup language. Although it is similar to the HTML language, WML is actually a subset of the application of XML.
2. What is WML?
WML represents wireless Markup Language, just as HTML is to a normal web browser. Some say it is xml-based, but it is more accurate to say that WML is an application of XML. Although it is syntactically similar to HTML, it is more XML. If you are prepared to move from HTML to WML, but without any knowledge of XML, WML is "very" strict. Just as HTML,WML is read and interpreted by a browser in a WAP device, it is then displayed on the screen. For WAP devices, browsers, or user proxies, are often called micro-browsers. The function of the micro-browser is limited by the WAP device.
Why using WML rather than using a wide range of HTML is due to the way WAP works and WAP is working for a "narrow" wireless world. displaying HTML on Netscape, opera, or IE requires more computational power. Computational power is, in a sense, the power of a mobile device. Because the power in the mobile device is limited, WML is typically converted and compressed before being sent to the WAP device. So WAP is using WML.
The reader may think that WML is very simple and cannot even handle the type of multimedia in HTML. This is not a problem. Markup languages (WML, HTML, and so on) do not have permission to manipulate devices, such as playing sounds or displaying animations. With a careful look at HTML, you'll find that no HTML tag can display animations or play music. Restrictions are from browsers that run markup languages. After all, in most cases, it is talking about mobile phones. But this restriction should be gradually removed as the wireless internet develops.
3. What is the difference between WML and HTML?
Although WML looks very much like HTML, the difference between the two technologies is still great. WML is a subset of the HTML designed for a micro-browser. The standard definition of WML is xml-based.
4. What is the difference between phone.com HDML and WML? Is there a phone call for HDML now?
HDML (hand-held Devices Markup Language) was developed by Phone.com. It allows Web pages to be displayed on mobile phones, and its standard announcements precede WAP standards. Motorola, Neopoint, Qualcomm and so on phone use phone.com browser, it supports HDML. The latest Up.browser support HDML and WAP.
5. Why use WML rather than HTML?
First, the WAP protocol requires the use of WML. There may already be WAP devices that can support HTML, but that's not true. There are some WAP devices that resemble wireless devices that support HTML, but they are not directly using HTML (for example: Microsoft Mobile Explorer supports HTML and WML). The MME Device just made two separate parts together. Of course there are also variants of HTML, such as the Imode browser using compact HTML. Simply put, if you talk about WAP devices, then the markup language is WML.
There are many reasons to choose WML over HTML. One of the most important reasons is that WML requires very little bandwidth compared to HTML. As wireless technology improves, bandwidth becomes wider. This may not be the main cause, but it will take many years before it reaches such a high bandwidth.
The other is that HTML requires a relatively strong processor. The power of the processor means more energy is needed. In wireless devices The energy comes from the battery. A processor with a low processing capacity means that the battery can be used longer.
In addition, HTML does require a large display screen. The screen on the mobile phone clearly does not meet the requirements. Of course there may be a big-screen mobile phone, but it will move farther away (that is, less like a mobile phone). Even if imode supports color and an HTML-like display, its size is already the maximum size you can easily carry.
6. Why is it necessary to specifically design a special language for wireless devices to access the Internet?
For many years, HTML tags have become richer and larger. In addition, browsers support a wide variety of HTML tags. This situation has been contrary to the original desire to establish a simple standard.
Mobile devices, such as mobile phones, feature small screens, low memory, lack of easy input devices, and narrow bandwidth. This situation drives the WAP discussion group to develop a new language used for wireless devices, and WML is born.
7. Can wireless devices also support HTML format?
From a technical point of view, the answer is yes. Since HTML is written for normal PC browsers, you can also use a micro-browser to browse an HTML page, but it may not work. Because the mobile phone does not know how to display the file. This usually causes the micro-browser to appear chaotic. and HTML pages are usually large, it will "hang up" the mobile device.
8. How do I convert HTML to WML?
When considering converting HTML, consider that WML is designed for small screens and cannot be as colorful as HTML. Any transformations will ignore many HTML tags and many embedded scripts. Only a few simple HTML pages can be converted satisfactorily. The conversion can be done using a toolkit such as: Spyglass Prism, or filtered via an online WAP gateway.
9. What can I use to navigate to the WML page?
First need a WAP-enabled mobile phone, for example: Nokia 71110,ericsson R320 and so on. There are also a number of desktop WML browsers for PCs, such as Winwap, Wapman, and so on.
10. Where can I learn more about XML?
Can visit the site: Www.w3c.org/xml. There is a lot of knowledge about XML on the site that is explained in detail.
What is the general syntax of WML?
WML is very much like XML. The syntax is stricter than HTML, which guarantees that there will not be too many error messages when the micro-browsers parse and interpret.
Like HTML, WML uses a formatted label consisting of "<" and ">". Many of the tags begin with <tag>, ending with </tag>. The part that is included in the beginning or end is called an element. Some tags are called empty elements, only labels, no content, such as:<tag/>.
Many elements have attributes to describe the content that should be there. Property names must be lowercase, and property values must be enclosed in double quotes. Some attributes are required and some are optional. The General Property label format is like: <tag attribute1= "Value" >.
Variables can be defined in WML cards, and their general format is $ (variablename).
A WML page has a special format that must begin with the XML document declaration:
<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum/dtd WML 1.1//en" "Http://www.wapforum.org/DTD/wml_1.1.xml" >
All elements of the page must be between the <wml> and </wml> tags.
Current 1/3 page 123 Next read the full text

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.