WML

From BC$ MobileTV Wiki
Jump to: navigation, search

Wireless Markup Language (WML) is an XML-based markup language for WAP devices such as Mobile Phones and PDAs.


Specifications


Examples

A basic document with one card is shown below:

 <?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="main" title="First Card">
     <p mode="wrap">This is a sample WML page.</p>
   </card>
 </wml>


A more complex example with multiple cards and functionality which can serve as a good template:


Tools


Resources

DTD

For historical purposes, the full DTD is in the discussion area:

Declare the Doctype as follows:

   <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/DTD/wml20.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:wml="http://www.wapforum.org/2001/wml">


Tutorials



External Links


References

  1. WAP Forum Releases Public Review Specifications for Wireless Application Protocol Version 2.0 (includes DTDs): http://xml.coverpages.org/ni2001-08-01-b.html


See Also

WAP | xHTML | Mobile Web