• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Developing in WML

WML must be well-formed XML. The practical implication of this is that you can’t use sloppy HTML the way you can with Web pages, which let you get away with tags that are not closed, such as <BR> and even using a <P> without a </P>. In WML you will need to use that </P> tag, and for tags that are solitary and not usually followed by a closing tag, you would write them as <BR/>, or <INPUT NAME=”MyField”/>. The slash before the closing bracket means that this lone tag opens and closes all by itself. The term “well-formed” carries other restrictions with it as well, but this is the main one you’ll need to stay on top of. For more information on these restrictions, refer to the XML specifications at http://www.w3.org/TR/xmlp-reqs/.


There are two main differences between WML and most of the HTML-based languages that you’ll develop with using GoLive. First, it’s an XML-based language, so the DocType is going to be XML instead of HTML, the XML is absolutely required to be well-formed, and very few of the familiar HTML tags you use are supported. Second, it uses the “deck of cards” metaphor as previously discussed, so you’ll need to rethink your notions about navigation and site structure. For this reason, even beginning developers need to play with a full deck.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint