Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Beginning WML

0.00/5 (No votes)
15 Jul 2001 1  
Learn the basics of WML without any previous knowedge of XML

WML

Tutorial By: webmaster@ltpb.8m.com -(June 30, 2001)

WML is a from of HTML. WML (Wireless Markup languages) is a scripting language that allows you to create web pages for wireless internet devices. To be able to view WML pages on your computer you will need an emulator, you can find one at M3gate.com. To create a WML page you do not need any thing but a text editor such as Notepad or DOS's Edit. To start a WML page you have to define is as a WML page by putting this code at the top:

<?xml version="1.0">
<!DOCTYPE wml PUBLIC="-//WAPFORUM//DTD WML 1.1//EN" http://www.wapforum.org/STS/wml_1.1.xml>

<wml>

After that you have to create a "card". The device views the information in "cards", because of the limitations that the screen has and that it can only show so much at a time. To create a card you use this tag(note: you can use more than one card in a page):

<card>
</card>

To display text into the card use the paragraph tag (place this inside the card tag):

<p>
	INSERT TEXT HERE
</p>

To make the text go to the next line use the tag (place this inside the card tag):

<br/>

To insert a link use one of two tags (place this inside the card tag):

<go href="URL" /> </anchor>

or

<a href="URL" >  </a>

To display a wireless bitmap image use the tag (place this inside the card tag):

<img src="WBMP URL">

To end your WML page use this code:

</wml>

Tutorial By: Ltpb.8m.com

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here