To make sure that your WML code is proper, you should use a WML validator.
The first address for WML (and any XML) validation is the W3C QA Markup Validation Service.
A WML validator is part of the Zygo tools. The validator is written in Perl and is both available as an online utility and for download.
You can also visit :
W3schools.com
czweb.org
validome.org