Wap/WML : Advanced WML
Jean-Michel Blanchard
Text Layout
WML supplies a specific element for emphasising part of the text:
<em>. As in HTML, just surround the text you want to highlight with the opening and closing tags.
<p>
Search <em>with WAP</em>.
</p>
The interpretation of the
<em> may be different and depends on the browsers and mobile devices used. Certain models will display the corresponding text
in bold, and others in italic.
Figure 1: On certain devices, the text marked by the <em> tag will be displayed as italicised
Close your tags! WML markup elements are always terminated by a closing tag.
If you are not satisfied with the various interpretations of this element, WML supports the use of the highlighting elements
that already exist in HMTL for bold, italic and underlined text. You can use the following tags:
<b>,
<i>,
<u>.
Example
<p>
Search <b>with WAP</b>.<br/>
Search <i>with WAP</i>.<br/>
Search <u>with WAP</u>.<br/>
</p>
This code will produce the following display:
Figure 2: The various kinds of text highlights
Linking and underlining Be careful with underlined text that can be confused with hypertext links when displayed on cellular phones.