WML Tutorial 2: A brief introduction to the concept of WML files WML decks

Source: Internet
Author: User
Tags first row version
Concept | tutorials

Here is a brief introduction to the concept of WML files, and other details are detailed in later chapters.

Statement
Because the WML language inherits from XML, a valid WML document must contain an XML declaration and a file type declaration.

The following is one of the most commonly used declarations, because the WML syntax is very strict, in order to avoid errors, the creator can copy and paste directly into the production document.

<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en" "http://www.wapforum.com/DTD/wml_1.1.xml" >

Note: The <?xml version= "1.0"?> statement must appear in the first row of a deck, and must be written with the insertion of any character, even if it is a space, which can cause grammatical errors.

Main structure
This is one of the simplest WML files:

<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en"
"http://www.wapforum.com/DTD/wml_1.1.xml" >
<wml>
<card title= "Sample" >
<p>hello wap!</p>
</card>
</wml>



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.