3.4 :: Page title and head element

Titling your page


Mobile internet pages are titled in the same way as traditional web pages - by using the <head> element.
  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <head>
  4.   <title>My First WAPL</title>
  5.   </head>
  6.   <layout>
  7.   <easyExternalImage filetype="png" scale="50">
  8.   <url>http://wapl.info/img/logo.png</url>
  9.   </easyExternalImage>
  10.   <easyChars>
  11.   <value>Hello World</value>
  12.   </easyChars>
  13.   <easyLink>
  14.   <label>Click me</label>
  15.   <url>http://manual.wapple.net/files/examples/wapl_is_easy.xml</url>
  16.   </easyLink>
  17.   </layout>
  18.  </wapl>
Downloadlisting 3.4.a

Head element


The <head> element is placed as a child of the <wapl> element. You can see it here between the opening wapl tag and the opening layout tag.
..snip..
  1.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  2.   <head>
  3.   <title>My First WAPL</title>
  4.   </head>
  5.   <layout>
..snip..

Title element


<title> is one child element of the <head> element. The page generated by this WAPL will have this title.
..snip..
  1.   <head>
  2.   <title>My First WAPL</title>
  3.   </head>
..snip..

Contents