Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

XHTML

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: senthilkumar05 (22 Nov 2007)
Last edited: hamishwillee (01 Aug 2012)

XHTML MP Overview

XHTML MP (eXtensible HyperText Markup Language Mobile Profile) is the markup language defined in WAP 2.0. WAP 2.0 is the most recent mobile services specification created by the WAP Forum (now the Open Mobile Alliance [OMA]). Advantages:The greatest advantage brought by XHTML MP is that developers can now use the same technologies for the development of both web sites and WAP sites. Syntax: Tags must be closed properly

Tags and attributes must be in lowercase

Value of attributes must be enclosed within quotation marks

No attribute minimization is allowed

Tags must be nested properly

MIME Types The following three MIME types can be used for XHTML MP documents:

application/vnd.wap.xhtml+xml

application/xhtml+xml

text/html

XHTML MP Document Structure

<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml/">

 <head>
   <title>XHTML MP Tutorial</title>
 </head>
 <body>

Hello world. Welcome to our XHTML MP tutorial.

 </body>

</html>


WAP CSS :

CSS describes how documents are presented on the screen in the browser.

WAP CSS is a subset of CSS appropriate for small devices defined by the OMA; it omits features that are not appropriate for very small devices and adds some WAP-specific Using CSS, a document author can specify the presentation of an entire Web application in one place: the style sheet.

CSS separates the content of the document or application from the presentation. This enables you to easily create browser-specific versions of the same content simply by creating the appropriate style sheet.

Sample.css li{ list- style - type:disc; margin - bottom:4px; margin- left:2px;}

This page was last modified on 1 August 2012, at 02:58.
55 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×