MC File
MC File
In this Lab, programs are designed on WML (Wireless Markup Language), which is the
programming language to design the mobile phone pages and also the part of the subject
curriculum.
Wireless Markup Language, based on XML, is a markup language intended for devices that
implement the Wireless Applica on Protocol (WAP) specifica on, such as mobile phones. It
provides naviga onal support, data input, hyperlinks, text and image presenta on, and
forms, much like HTML (Hypertext Markup Language). It preceded the use of other markup
languages now used with WAP, such as HTML itself, and XHTML (which are gaining in
popularity as processing power in mobile devices increases). The official WML specifica on
is developed and maintained by the WAP Forum, an industry-wide consor um founded by
Nokia, Phone.com, Motorola, and Ericsson. This specifica on defines the syntax, variables,
and elements used in a valid WML file.
WML Tags:
WAP homepages are not very different from HTML homepages. The markup language used
for WAP is WML (Wireless Markup Language). WML uses tags - just like HTML - but the
syntax is stricter and conforms to the XML 1.0 standard. WML pages have the extension *.
WML, just like HTML pages have the extension *. HTML. WML is mostly about text. Tags that
would slow down the communica on with handheld devices are not a part of the WML
standard. The use of tables and images is strongly restricted. Since WML is an XML
applica on, all tags are case sensi ve (<wml> is not the same as </WML>), and all tags must
be properly closed.
Element Tags:
As WML is a language derived from XML, each element has an opening and a closing tag; if
no actual content exists, an abbrevia on can be used. WML is therefore case sensi ve, tags
have to be given in lowercase le ers.
<tag>Content</tag>
<tag/>
<tag a ribute="value1">Content</tag>
<tag a ribute="value"/>
Meta Tags:
Proliferate informa on to search engines and are surrounded by a <head> tag. These are
located at the head of the file a er the prolog and the <wml> tag.
<head>
<meta name="keywords" content="keyword"/>
<meta name="descrip on" content="a descrip on"/> <meta name="author"
content="Thomas
Ziegler"/> </head>
Links:
Links may be given in two ways, but the <a> tag is preferred.
CDATA:
With a CDATA sec on text can be displayed without interpreta on of tags and special
characters.
<! [CDATA[Dies ist ein langer, unforma erter Text, der <nicht> geparst wird, daher sind auch
"$%&" Zeichen erlaubt]]>
IMAGES:
The WBMP format (Wireless Bitmap) is used to code images under WML. Nokia has a DOS
based conversion u lity.
INPUT:
<input> generates a text entry field and validates the entry against a format specifica on.
The value is returned in a Variable.
Links:
Links may be given in two ways, but the <a> tag is preferred.
CDATA:
With a CDATA sec on text can be displayed without interpreta on of tags and special
characters.
<! [CDATA[Dies ist ein langer, unforma erter Text, der <nicht> geparst wird, daher sind auch
"$%&" Zeichen erlaubt]]>
IMAGES:
The WBMP format (Wireless Bitmap) is used to code images under WML. Nokia has a DOS
based conversion u lity.
INPUT:
<input> generates a text entry field and validates the entry against a format specifica on.
The value is returned in a Variable.
<wml>
</card>
</wml>
Output:
EXPERIMENT - 3
<wml>
Output: