Copyright © tutorialspoint.com
The WML <wml> tag is used to define a WML deck and contains cards and other elements of the document.
The <wml> element serves a purpose much like the <html> element does for HTML pages.
The <wml> element supports the following attributes:
| Attribute | Value | Description |
|---|---|---|
| xml:lang | language_code | Sets the language used in the element |
| class | class data | Sets a class name for the element. |
| id | element ID | A unique ID for the element. |
Following is the example showing usage of this element:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd"> <wml> <card id="one" title="First Card"> <p> This is the first card in the deck </p> </card> <card id="two" title="Second Card"> <p> Ths is the second card in the deck </p> </card> </wml> |
Copyright © tutorialspoint.com