×
Namespaces

Variants
Actions

WML

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: firt (14 Apr 2007)
Last edited: hamishwillee (31 Jul 2012)

Wireless Markup Language (WML) is an XML document prepared to format a webpage in a mobile browser. It was designed in the standard WAP 1.0 and was deprecated by XHTML MP. Many new devices/phones supports this language right now too.

The information is distributed in decks (a WML file) composed by cards (a visual webpage). Inside one deck, you can include many cards and you can link each other reducing server traffic.

It also supports images (in WBMP format), tables, forms and an script language, called WMLScript. It doesn't support color screens nor many advanced design features. XHTML MP (Mobile Profile) solves this problem using CSS.

You can test WML pages with many Nokia emulators and SDKs.

This is a sample of WML file:

 <?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
"http://www.phone.com/dtd/wml11.dtd" >
<wml>
<card id="main" title="First Card">
<p mode="wrap">This is our first mobile webpage
<a href="#card2">Next</a></p>
 
</card>
<card id="card2" title="Second Card">
<p mode="wrap">This is our second card</p>
</card>
</wml>
This page was last modified on 31 July 2012, at 13:20.
125 page views in the last 30 days.