Creating a WML Page
Following is a Sample WML Page
| <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml>
<card> <p> Welcome to Wapopia.com <p> </card> </wml>
|
First two lines of code are XML declarations. These specify document version and type and are to be included in all WML files The entire WML page is enclosed within <wml> and </wml> tags.
This
is required for every WML page you create, similar to the <html>
and </html> tags required for HTML pages All the other tags and
content appear in between these WML tags. The card is denoted by
<card> tag and all the card content must be placed between these
<card> and </card> tags.
The <p>
tag defines a paragraph (like the <p> tag in HTML) however you
cannot place any text directly in a WML Card so a <p> tag is must.
Do
remember that unlike HTML, WML is very strict and all tags require end
tags, omitting an end tag will result in the generation of an error
|