2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 13 - Wireless Markup Language (WML): Part I Outline 13.1 Introduction 13.2 Editing WML 13.3 First WML document 13.4 Phone Simulator Install and Setup 13.5 Formatting Text 13.6 Images 13.7 Linking Hyperlinking Internal Linking External Linking 13.8 Special Characters 13.9 Internet and World Wide Web Resources
2001 Prentice Hall, Inc. All rights reserved. Outline Welcome to WML! Fig13_1.wml Text for display in a microbrowser.
2001 Prentice Hall, Inc. All rights reserved. Outline 3
2001 Prentice Hall, Inc. All rights reserved. Outline 4 Fig. 13.2Phone Information window.
2001 Prentice Hall, Inc. All rights reserved. Outline 5 Fig. 13.3Phone Information window displaying an error.
2001 Prentice Hall, Inc. All rights reserved. Outline 6 Fig. 13.3Corresponding Openwave browser displaying an error.
2001 Prentice Hall, Inc. All rights reserved Formatting Text
2001 Prentice Hall, Inc. All rights reserved. Outline A bold statement 12 A big deal 13 A small problem 14 I mean it 15 This is fancy 16 Strong man 17 Not a link Fig13_5.wml Text marked up using formatting elements.The break element places all remaining text on the next line in the display screen.
2001 Prentice Hall, Inc. All rights reserved. Outline 9
2001 Prentice Hall, Inc. All rights reserved. Outline Images Fig13_6.wml Setting the paragraph element’s align attribute to center places all text and images in the center of the display screen. The name of the image to display. The value of the alt attribute will display if the image cannot be displayed. The height and width attributes define the size of the image.
2001 Prentice Hall, Inc. All rights reserved. Outline 11
2001 Prentice Hall, Inc. All rights reserved. Outline Search Engines: Sports 17 SciFi Fig13_7.wml Link to mobile.sports.com.The accesskey attribute programs a key on the keypad that can be used to select the link. The value of the title attribute will label the soft key on the phone that will activate the link.
2001 Prentice Hall, Inc. All rights reserved. Outline 13
2001 Prentice Hall, Inc. All rights reserved. Outline 14 Fig13_8.wml Go to the next card by pressing Go. 20 (This is card1) This is card2. 34 Press Back to go back to card1. Soft key that links to card2.Setting the type attribute to accept programs the soft key on the left side of the phone. The prev element links back to the previous card.
2001 Prentice Hall, Inc. All rights reserved. Outline 15 Fig13_8.wml
2001 Prentice Hall, Inc. All rights reserved. Outline Local Icons Link Wrench Football Fig13_9.wml The localsrc attribute displays a local icon stored in the phone’s memory. The football icon links to card4 in a separate WML deck.
2001 Prentice Hall, Inc. All rights reserved. Outline Boat You chose the link! You chose the wrench! Fig13_9.wml The boat icon links to card5 in a separate WML deck.
2001 Prentice Hall, Inc. All rights reserved. Outline You chose the football! You chose the boat! Fig13_10.wml If the football link is chosen, card4 displays.If the boat link is chosen, card5 displays.
2001 Prentice Hall, Inc. All rights reserved. Outline 19
2001 Prentice Hall, Inc. All rights reserved. Outline Special Characters: Experts suggest " A person's 16 daily diet should consist of < 2000 calories & 17 not > 20 grams of fat." Fig13_11.wml Each character entity represents a special character.
2001 Prentice Hall, Inc. All rights reserved. Outline 21