350 likes | 937 Views
WML Wireless Markup Language. Presented by: Richa Saxena Roll no 1706120. What is WML?. Markup Language built specifically for communicating across WAP-based networks. An specific instance of XML (Extensible Markup Language). WAP (Wireless Application Protocol).
E N D
WMLWireless Markup Language Presented by: RichaSaxena Roll no 1706120
What is WML? Markup Language built specifically for communicating across WAP-based networks. An specific instance of XML (Extensible Markup Language).
WAP (Wireless Application Protocol) • It lets your mobile phone to communicate with your provider’s gateway. • The Gateway in turn retrieves content from servers using HTTP.
Mobile World Entering the Web world access by PC access by PDA access by mobile phone Magic Lounge is entered via heterogeneous devices virtual meeting space
WAP Browser interface: Users navigate WAP sites using three tools • Navigation arrows • Left and right soft buttons • Keypad
WAP medium properties: • Site are designed for low Bandwidth condition. • Use minimal Graphics • Sites are broken into multiple cards. • Sites must be designed for easy bookmarking . • Sites tend to be menu driven rather than text-entry driven.
Deck and Card Organization • Card- Each screen displayed on phone is called a card • Cards are saved in a group called Deck. • Deck is stored in a .wml file.
What happens when user selects a link? • A new card in the current deck is brought to the foreground • A new deck is loaded and one of its cards is displayed
Syntax used in WML script. • WMLScript is case-sensitive. • WMLScript is a weakly typed language . • Variety of operators that support assignment, arithmetic, logical, string, comparison, and array operations. • Functions can be created and used in WMLScript. • String - contains a set of functions for performing various string operations
More WML syntax • Comments can either be single-line (beginning with //) or multi-line (bracketed by /* and */). • WMLScript supports a number of control statements
WML Example: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml><card id="main" title="An Example"> <p>Hello World </p> </card></wml>
WML follows XML rules • Tags must be nested <b><i>Hello</b></i> (invalid) <b><i>Hello</i></b> (valid) • Tags must be closed <p> <br > </p> (invalid) <p> <br> </br> </p> (valid) • Tags are case sensitive and must be written in all lowercase • All attribute values must be in quotes <p align=center> (invalid) <p align="center"> (valid)
Multiple cards & hyperlinks <wml> <card id="home" title="SMPU"><p align="center"> <big>SMPU</big><br /> <small><i>Society of Mobile Phone Users</i></small><br /></p><p> <a href="#about">About SMPU</a><br /> <a href="become-simple.wml">Become a Member</a><br /></p> </card> <card id="about" title="About SMPU"> <p>SMPU was founded by a group of devoted mobile phone users.</p> <p><a href="#home">SMPU Home</a></p> </card> </wml>
Anchoring <wml> <card title=“Anchor Tag”> <p> <anchor> Next Page<go href =“test.html”> </anchor> </p> </card> </wml>
WML Tasks • GO Task <wml> <card> <p> <anchor> Go to Test <go href =“test.html”> </anchor> </p> </card> </wml>
Prev Task <wml> <card> <p> <anchor> Previous Page <prev/> </anchor> </p> </card> </wml>
No operation Element <noop> says that nothing should be done • Refresh <refresh> refreshes the screen • Image Element <img> Define an image
Comparison of HTML with WML • WML is highly structured and very particular about syntax while HTML is not. • WML is case sensitive in contrast to HTML • Many tags have required attributes while in HTML we use only those attributes which we need • WML pages are organized into deck and card structure in contrast to HTML
WML has to cope up with inherent limitation in environment………. • Display Size-smaller screen size and resolution. • Input Device-input is usually accomplished by combination of numeric keypad and some function keys • Computational resources-Low power CPU and small memory size • Narrowband network connectivity.
Conclusion • With growing number of mobile users WAP network is bound to grow. • As limiting factor WAP cannot be employed for huge threaded message boards or slideshows. • WAP is best suited for small, concrete pieces of data; stock quotes, addresses, instant messaging, and such.