WAP’s WML by David Boncarosky WML Inherits From XML WML Extends Interactivity to Cell Phones, Pagers, PDAs Display Varies Widely From Device to Device WML tags lack consistency across different manufacturers
WML Coding WML Based on a Deck of Cards -- the device only shows 1 card at a time WML Based on a Deck of Cards -- the device only shows 1 card at a time Cards in a Deck can Interact with other Cards in Deck and Cards in External Decks Cards in a Deck can Interact with other Cards in Deck and Cards in External Decks
WML Coding All WML documents MUST have a specific header All WML documents MUST have a specific header The Deck is delimited by the... tag The Deck is delimited by the... tag <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " Hello World!
Entering Text Cards are delimited by the... tags Cards are delimited by the... tags All Text within a card must be placed in... tags All Text within a card must be placed in... tags My First WML Card! (a.k.a. Hello World!)
WML Anchors (links) Similar to HTML links Similar to HTML links text text Use # to reference a card (e.g. href = “#myCard”). Otherwise, will go to the first card in a deck Use # to reference a card (e.g. href = “#myCard”). Otherwise, will go to the first card in a deck My First link
WML sample Site <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " </do> </do> </do>
WML sample site (cont.) <p> Welcome to CMU Welcome to CMU Find a Person Find a Person School Info School Info My CMU My CMU </p>
WML Sample Site (cont.) <p> Find Someone at CMU Find Someone at CMU First Name: First Name: Last Name: Last Name: </p><p> Submit Submit </p>
WML Sample Site (cont.) <p> Select the School: CFA CFA GSIA GSIA Heinz Heinz HSS HSS MISM MISM </select> Get Info Get Info </p>
WML Sample Site (cont.) <p> Login to Check Login to Check User ID: User ID: Pass: Pass: <anchor> Login Login </anchor></p> </wml>