WML Decks
WML pages are called DECKS
.
They are constructed as a set of CARDS
, related to each other with links.
A typical WML script is as follows:
- The first line shows the WML document is an XML document.
- The second lines shows that the
DOCTYPE
is defined to be wml
, and the DTD is accessed at http://www.wapforum.org/DTD/wml_1.2.xml.
A Document Type Definition (DTD) is a formal description in XML declaration syntax of a particular type of document.
It sets out what names are to be used for the different types of element, where they may occur, and how they all fit together.
- The document content is inside the
<wml>...</wml>
tags.
- Each card in the document is inside
<card>...</card>
tags, and actual paragraphs are inside <p>...</p>
tags.