XHTML Mobile Profile

from Wikipedia, the free encyclopedia

XHTML Mobile Profile ( XHTML MP ; German XHTML Mobile Profile ) is a markup language specially designed for mobile phones and PDAs . The XHTML MP specification is defined by the Open Mobile Alliance (OMA).

The XHTML Mobile Profile consists of modules according to the XHTML modularization . It is a subset of XHTML 1.1 based on XHTML Basic . XHTML MP is mainly used in conjunction with Wireless CSS (WCSS) and ECMAScript Mobile Profile (ESMP).

Development of mobile web standards

In addition to the modules of XHTML Basic, XHTML MP 1.0 also supports:

  • Forms (partially)
    • fieldsetand optgrouptags.
  • Representation (partially)
    • b, big, hr, iAnd smalltags.
  • Style sheets
    • styleElement and styleattribute.

XHTML MP 1.1 also provides support for scripts, most notably ECMAScript Mobile Profile (ESMP).

XHTML MP 1.2 has full support for XHTML forms and support for the objectelement.

example

An XHTML Mobile Profile Page can look like this:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
  "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>
  <head>
    <title>Ein XHTML Mobile Profile Dokument</title>
  </head>
  <body>
    <p style="color: red;">Das ist ein roter Absatz.</p>
  </body>
</html>

There is also an alternative DTD available from Openwave, which contains some extensions compared to the normal XHTML Mobile Profile:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile 1.0//EN"
"http://www.openwave.com/dtd/xhtml-mobile10.dtd">
<html>
  <head>
    <title>Ein XHTML Mobile Profile Dokument</title>
  </head>
  <body>
    <p style="color: red;"><u>Das ist ein rot-unterstrichener Absatz.</u></p>
  </body>
</html>

Web links