Openwave Mobile Browser 6.1 and 6.2: XHTML Mobile Profile and CSS Reference
Section 11 out of 38 total sections
Current chapter: XHTML-MP Reference

Each XHTML-MP document starts with a prolog. The prolog declares the language standards to which the document conforms and identifies the document's root element.

Valid XHTML-MP documents start with an XML declaration, for example:
<?xml version="1.0"?>
This XML declaration states that the document follows the syntax of XML 1.0 (for more information, see the W3C web site: http://www.w3.org).

Every valid XHTML-MP document contains a DOCTYPE declaration between the XML declaration and the document's root element. The DOCTYPE declaration tells the browser which XHTML-MP document type the document conforms to and the name of the root element (for XHTML-MP, always <html>).
Validation applications use the DOCTYPE declaration to check that the code in a document conforms to the syntax and other rules of a specific Document Type Declaration (DTD). Syntax validators are good tools for spotting errors in your code. The W3C offers a free validation service that validates your code against any DTD: http://validator.w3.org.
If you don't plan to validate the extensions to XHTML-MP supported by Openwave Mobile Browser (the browser will take advantage of them regardless of the DOCTYPE declaration you use), use the following DOCTYPE declaration:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
If you want to take advantage of the extensions to XHTML-MP supported by Openwave mobile browsers and want to validate your code, use the following DOCTYPE declaration:
<!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile 1.0//EN"
"http://www.openwave.com/dtd/xhtml-mobile10.dtd">
For more information about extensions to XHTML-MP, see Appendix C, Extensions to XHTML-MP and CSS.

