Creating Your First Card

As you learned in the previous chapter, WAP pages are actually called cards, and these cards are constructed using WML. WML itself is a very simple language, even simpler than HTML. But unlike HTML, WML has very strict and rigidly enforced rules.

To get you started, let's look at a complete WML example—a basic card with simple text. The card will generate output as shown in Figure 3.1.

Figure 3.1. Device emulators are ideal for testing WML code.

Note

I highly recommend that you try these examples for yourself as you work through them. The simplest way to do this is be using one of the many available device emulators ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.