18.2. Going to Another XHTML MP Page

Going to another XHTML MP page is straightforward. Just create an anchor link and specify the URL of the target page as the href attribute value of the <a> element. When a user selects that anchor link, he/she will be directed to the target page.

The following XHTML MP example demonstrates how to create an anchor link that can direct you to another page:


(linksEg2.xhtml)

<?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>
    <p>Table of Contents:</p>
    <ul>
      <li>Part 1 XHTML MP Introduction</li>
      <li>Part 2 Development of Wireless Markup Languages</li>
      <li>Part 3 Advantages of XHTML MP</li>
      <li>Part 4 WML Features Lost in XHTML MP</li>
    </ul>
    <p><a href="linksEg3.xhtml">Continue</a></p>
  </body>
</html>


(linksEg3.xhtml)

<?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>
    <p>Table of Contents (continued):</p>
    <ul>
      <li>Part 5 Syntax Rules of XHTML MP</li>
      <li>Part 6 XHTML MP MIME Types and File Extension</li>
      <li>Part 7 XHTML MP Document Structure</li>
      <li>Part 8 XHTML MP Generic Metadata</li>
    </ul>
    <p><a href="linksEg2.xhtml">Go to the previous page</a></p>
  </body>
</html>


These are the screenshots of the linksEg2.xhtml page in WAP browsers:





Sony Ericsson T610





Nokia Mobile Browser 4.0


If you select the anchor link "Continue", the WAP browser will display another XHTML MP page (linksEg3.xhtml).


Sony Ericsson T610


Nokia Mobile Browser 4.0


Previous Page Page 24 of 36 Next Page


Feedback Form (ExpandCollapse)

What do you think about this web page?






(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page