WebCab.de: Wrong nested elements

Home: WAPstacles: Wrong nested elements

Wrong nested elements

The syntax for WML elements is defined as such that a start tag must be closed with an end tag:

<tag>this is the content</tag>

<tag> is the start tag, </tag> is the end tag. The slash in the end tag must be placed in front of the tag name.

An element may be a part of the content of another element. The rule above must be applied. This means that the start tag and end tag must be part of the content.

Wrong:

<p><small>some content</p></small>

Right:

<p><small>some content</small></p>

Since WML is an XML language at least the syntax of a WML deck must be correct. Otherwise, WAP gateways will probably detect such an error and will respond with "malformed content" or "WML deck cannot be displayed".

If you don't have the right tool to check your WML decks then we suggest to use WebCab.de's on-line tool Fetch Page.

[ < Prev ] [ Next > ]

© 2000-2017 WebCab.de TM, Contact