Nokia SERIES 30 Cell Phone User Manual


 
Forum.Nokia.com
4 WML Elements for the Nokia User Interface
This chapter serves as a guide for using WML in designing services. It provides an overview of
graphical user interface elements, that is, the WML elements that are critical from the
rendering point of view and their WML capabilities supported by the browser. The document
does not include all possible WML elements and attributes. WAP service developers should pay
special attention to Sections 4.2: Table and 4.3: Images.
The WML elements are briefly described and demonstrated with screenshots. Code examples
include only the essential part related to using the elements, i.e., the document prologue is not
shown after Example 1.
4.1 Text Formatting
The contents of a WML card are displayed in the Application area of the display (see Figures 4.1
and 4.2). The card is a container of text, images, tables, and input elements. The order of
elements in a card is significant, as they appear on the screen in the same order.
4.1.1 Paragraph and content alignment
The paragraph element, p, enables word wrapping and content alignment. A paragraph
always starts on a new line. Normal static text information is always wrapped on a display,
unless word wrapping is set off in the browser settings.
Insignificant white space is ignored. If more than one white space separates the constituents
of a text, these white spaces are ignored unless the pre element is used. See Section 4.1.4 for
more information on the pre element.
The content inside a paragraph can be aligned to the left, center, or right by option; left
alignment is displayed by default. Alignment is determined in paragraph attributes (for
example, <p align="right">). Word wrapping can be set to wrap or nowrap by using the
mode attribute in paragraph.
<p align="center">
Align &quot;center&quot;
</p>
<p align="right">
Align &quot;right&quot;
</p>
<p align="right">
<img alt="3510i" src="file://C:/USERS/wml/3510i.gif" align="top" hspace="0"
vspace="0"/>
</p>
Example 1: Alignment <align>
4.1.2 Line break
New lines in text can be defined by a line break. The line break element, br, can be used inside
other elements as well, as long as it belongs to a paragraph. If a line break is defined after an
a element, the line break is ignored. If an empty line is needed between two links, it is
necessary to add two line breaks between the a elements.
WAP Service Developer's Guide for Nokia Series 30 Phones with WML Browser
15