WebCab.de: Paragraph

Home: WAPstacles: Paragraph

Paragraph

A paragraph contains some text and some hyperlinks. Some people set the mode attribute of the paragraph element to the value nowrap in order to reduce the line space between the wrapped lines in the Nokia 7110. The Nokia 7110 ignores this attribute so that I have never seen any influence of the attribute on the rendering result of the WAP browser. However, what happens if you retrieve such a WML deck with any other WAP browser that supports this attribute? Well, the paragraph won't be wrapped if the content is too long. You cannot see the whole content in the display. Therefore, you shouldn't set this attribute to nowrap in this case.

Wrong:

1 <?xml version="1.0"?>
2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
3 <wml>
4 <card title="WebCab.de">
5 <do type="prev" label="Back"><prev/></do>
6 <p mode="nowrap">This long line will only be wrapped in the Nokia 7110.</p>
7 </card>
8 </wml>

Right:

1 <?xml version="1.0"?>
2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
3 <wml>
4 <card title="WebCab.de">
5 <do type="prev" label="Back"><prev/></do>
6 <p>This long line will be wrapped in all WAP browsers.</p>
7 </card>
8 </wml>

[ < Prev ] [ Next > ]

© 2000-2017 WebCab.de TM, Contact