In designing WAP web pages, whether you are using the WAP development tool is Up.SDK or Nokia WAP Tookit or Ericsson Wapide, you must set up a web server settings, so you will have a common settings of several web servers as follows: 1, Window NT platform IISA, Startup Menu -> Program -> Windows Nt Option Pack -> IIS4.0 B, right-click the sub-computer name of Internet Information Server, select 'attribute' C on the shortcut menu, lower part of the property page, There is a 'File Type (F)' button, click this button, the file type interface D, click the 'New Type' button, then fill in .WML in the relevant extension column, in the content type (MIME) Fill in the text / vnd.wap.wmle in the column, click 'OK' buttons F, repeat C, D, E three steps, and add other MIME types. 2, Apache Web Server ON NT OR Solaries or Linux or Other Unix A, whether it is NT or UNIX or Linux, is a conf / mime.types file B in the Apache installation directory, adding the following: Text / VND.WAP.WML .WML image / vnd.wap.wbmp .wbmp application / vnd.wap.wmlc .wmlc text / vnd.wap.wmls.wmls application / vnd.wap.wmlsc .wmlsc C, store D, restart Apache Web Server.
Second, WAP web design Getting Started here to introduce the marker language WML set by the WAP Protocol Standard Organization, since the HDML previously introduced is basically consistent on the characteristics of the mobile browser-specific web page, so the concept part is slightly, and the language is described directly. 1. Basic Rules * WML uses XML document character sets, currently supports Unicode 2.0, and HDML, WML's labels, attributes, and specified receiptable values must be lowercase, the name and variable of Card are also case sensitive. Like HDML, only one space is displayed for continuous empty characters. The value of the label is required to use "or" there is no space between the property name, = and values. For labels that do not have pairs, you must add /, for example. In the reference The same is basically the same as HDML, with:
$ (VAR1: ESC) $ (var1: noesc) $ (var1: unsc) three forms, the specific meaning refers to the relevant part of the front HDML. On the same way to reserved characters, the corresponding replacement characters are: <>> '& apos "&&&& $ $$ space - here to point out the connection of the parameters during the transfer of the URL & Must be converted to &. 2. General format of basic format and file head WML file: XML Version = "1.0"?>
"http://www.wapforum.org/dtd/wml_1.1.xml">, Meta ;/head>" Card> SME CONTENTS ... card> structure looks similar to the HTML file, for each dec k, the following statement must be specified in its document. XML Version = "1.0"?> Qian Note the case in the letter. For a deck, its file size is preferably not more than 1.2k. Label and HTML's tag, used to indicate this WML DECK, which has an optional XML: Lang property to set the language of the document, such as Indicates the document language as Chinese. As HTML tag contains information about the Desk. The tag can contain a tag and multiple tags. The tab is equivalent to the HTML, specifies the access control information of the DECK, which uses two optional properties, Domain is used to specify the domain, the default value For the current domain, the path is used to specify the path, the default value is "/", the root directory. Since is used alone, it is necessary to use / end, and will not be described again for similar situations.
and HTML is similar, providing META information of the deck. The attribute is a must, including three cases name = "name" UP.Link Server ignore META data http-equiv = "name" UP.LINK Server converts META data to HTTP response head (same html) user-agent = "Agent" UP.LINK Server directly transmits META data to the mobile device Content property is also a must, and its content is determined according to attribute. The scheme attribute is currently not supported. Forua is optional attribute, the tag is deleted by the intermediate agent before the WML file is transmitted to the client (because the protocol of the transmission may change), the default value is false. Currently supported META data: Specifies the storage time period in the phone memory cache, the default for 30 days (unless the memory is exhausted ), During which mobile phone is called directly from the cache for the DECK. If the information is sensitive to time, you can specify the survival period in the cache with the max-agn, the minimum unit is second, if specified as 0, then each time you need to call the DECK.
WML is basically equal to HTML on the display of text. The text paragraph is included in
and p>, the align property specifies the alignment of the paragraph, the default is Left, other can choose Right and Center; Mode property specified When a row does not automatically wrap when all words are automatically wrap, the default is the automatic wrap WRAP. If NOWRAP is selected, the browser will display all text through a mechanism similar to the horizontal scroll bar. The wrap tag is also the same, here for a few, if there are multiple or