Image Restrictions

In addition to the specified limits that are set by the WBMP specification from the WAP Forum, other restrictions affect a developers ability to use images within a WML deck.

According to the WAP Forum, the <img> tag can only be used within a paragraph of text. This means that it cannot be used as a soft key label or within a <option> element.

Tip

By using the Phone.com DTD, you can use images within an <option> statement on Phone.com UP.Browser devices that support images.

Aside from the limitations imposed by the WML DTD, some devices further restrict how images will render on the screen. Currently no devices respect the align attribute. The align attribute of the <p> tag which encloses the image can be used to align the ...

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.