WML documents must have the DOCTYPE declaration. It should be placed
between the XML declaration and the <wml> element. Below is the
DOCTYPE declaration for WML 1.3. You can simply copy and paste it
into your WML files.
wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
DOCTYPE declaration specifies the name of the DTD (Document Type
Definition) and the URL to the DTD. The DTD contains information
about the syntax of the markup language. It defines what elements and
attributes can be used in the markup and the rules that they should
be used. For example, the DTD of WML specifies that the <card>
element should be enclosed in the <wml></wml> tag pair.
If you do not follow this rule, your WML document is said to be
invalid. WAP browsers will complain if you try to view an invalid WML
you are interested in the DTD of WML 1.3, it can be downloaded at
you want your WML code to conform to an earlier version of the WAP
standard, you have to change the DTD.
is the DTD declaration for WML 1.2:
wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
is the DTD declaration for WML 1.1:
wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
tools can be used to check whether your WML document conforms to the
WML language rules by comparing your WML document with the DTD
specified in the DOCTYPE declaration. Such validation tools are
integrated in some IDEs.
Feedback Form (ExpandCollapse