Home > Articles > Networking > Wireless/High Speed/Optical

  • Print
  • + Share This
Like this article? We recommend

Creating an XHTML Page

If you haven't heard yet, we're all headed toward XHTML, wired or wireless, whether we like it or not. In the wireless arena, WAP 2.0 makes the move to XHTML markup while still guaranteeing backward-compatible support for WML 1.1. Creating a new XHTML document in the Toolkit is very easy. Simply select the File/New... menu option; then select the XHTML-MP icon from the Browsing tab. This will produce the following shell of a valid XHTML file:

<?xml version="1.0"?>
        "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
        <title>XHTML Mobile Profile Document</title>
            Change href="style.css" below to the file name and
            relative path or URL of your external style sheet.
        <link rel="stylesheet" href="style.css" type="text/css"/>
        <style> document-wide styles would go here </style>
        <h1> Heading </h1>

Note that the starter code above includes a reference to a CSS style sheet. WAP 2.0 defines a wireless CSS format that is a subset of Cascading Style Sheet Level 2. Style sheets have grown in popularity in the web world over the years because they allow all presentation rules for one or more documents to be contained in a single file. These rules include font styles, positioning, and colors as well as other layout "decorations" such as borders and spacing. For more information on Wireless CSS, see http://www.w3.org/TR/css-mobile.

  • + Share This
  • 🔖 Save To Your Account