Openwave Mobile Browser 7.0: XHTML Mobile Profile and CSS Reference
Section 10 out of 38 total sections
Current chapter: XHTML-MP Reference

XHTML-MP is based on XHTML and uses the same markup rules.
XHTML elements consist of a start tag (which includes the element name and element attributes), element content, and an end tag arranged as follows:
<element attribute="value">element content</element>
Not all elements have attributes or content.
The following rules apply to XHTML and XHTML-MP documents:
XHTML documents must be well formed. Because XHTML is based on XML, documents must conform to XML syntax rules.
All XHTML elements must be closed. You can use a closing slash with any empty element such as <br/> or <a id="page1"/>.
A DOCTYPE declaration is required. All examples in this book include this declaration. See DOCTYPE Declaration for more information.

