Page 61 - DCAP512_WAP_AND_WML
P. 61
Unit 5: Understanding WAP in WML
<i> Writing italic text Notes
<br> Inserts a line break
<a> Creates a link
By the end of this unit you are very much familiar with the WML language. Now try the
following WML script which uses the different formatting tags. You can test your script by
copying and pasting the code in above text area and pressing the test button.
<?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=”Card1" title=”Learning WML “>
<p>
Welcome to Unwired World! <br/> Line break<br/>
<b>This is bold.</b><br/>
<i>This is italic.</i><br/>
<b>This is bold.</b><br/>
<u>This is underline.</u><br/>
<small>This is small.</small><br/>
<strong>This is strong.</strong><br/>
</p>
</card>
</wml>
Did u know? What is the history of WML 2.0?
WAP site developers need not to care about WML 2.0. WML 2.0 is created for backward
compatibility purposes and it is not for use by WAP site developers. To develop a WAP
site with the WAP 2.0 standard, use XHTML Mobile Profile.
Self Assessment
Fill in the blanks:
4. The whole WML-page is called a Deck and it consists of …………………. cards.
5. Cellular device displays …………………. card when it receives a Deck.
6. WML card starts with …………………. and ends with </card> tag.
7. Attribute …………………. of card element gives the identity to the card and using this id
we can refer any card in the WML page.
8. First card of WML page is displayed by the cellular device and this card provides the
…………………. to the other cards of the deck.
LOVELY PROFESSIONAL UNIVERSITY 55