HTML tutorial WAP2.0 definition and XHTML MP

Source: Internet
Author: User

A colleague tested WAP and found that some tags and attributes of the terminal were not supported. In order to determine whether the terminal should support these tags and attributes, he specially studied the following specifications, I checked it in wapforum and it took a great deal of twists and turns. After thinking about wap for so long, these common-sense Dongdong did not form a document. I can't say it, but I can't ask experts to solve it. Oh, I am doing it myself. The Chairman is talking about the truth.

1. About WAP2.0

What is WAP2.0? I did not find his formal definition. In the early stages of wireless network development, to adapt to wireless network transmission and display on small screens, WAP forum defined a complete set of protocols, such as WTCP, WDP, WSP, WTP, WML, etc. At that time, wireless networks were almost isolated from the Internet accessed by our platform. If a website needs to be browsed by the Internet and wireless network at the same time, you need to maintain two sets of versions. To make the two compatible, WAP forum uses the cross-platform XHTML as the markup language, so that the wireless Internet and the limited Internet can be compatible. WAP forum does not provide a standard definition for WAP2.0. However, it proposes specifications to meet WAP2.0's requirements. These specifications include both terminal specifications and gateway specifications, A total of 93. Among the 93 specifications, most of the 1.x protocol stacks have been included. The following are introduced in WAP2.0:

1) HTTP protocol: Protocol

2) XHTML-MP: The correlation between signature is wap-277-xhtmlmp-20011029-a.pdf

3) wap css: wap-239-101-wcss-20020430-a.133 and wap-239-wcss-20011026-a.pdf

4) Transport Layer Protocol: Related to ipvwap-225-tcp-20010331-a.pdf

5) Security Layer Protocol (TLS): wap-219_100-tls-20011029-a.20.,wap-219-tls-20042611-a.pdf

It can be seen that WAP2.0 is gradually moving closer to the limited Internet from protocol to description language.

China Mobile upgraded the gateway to wap2.0 early on to provide related services and developed the wap2.0 terminal specification. The specification clearly states that WAP2.0 terminals must support xhtml mp and WCSS. For a protocol stack, it requires an IP --> W-TCP --> TLS/SSL --> WAP-HTTP --> WAE structure.

2. XHTML-MP

The XHTML-MP is XHTML Mobile plugin ).

XHTML-MP is a complete subset of XHTML1.0, based on xhtml basic, with some elements and attributes from XHTML1.0 added. The specification clearly states that XHTML-MP is the Superset of XHTML Basic, that is, xhtml mp supports all the elements and attributes of XHTML Basic, it is designed for clients that cannot fully support XHTML elements and attributes because of resources.

Elements in XHTML Basic include:

1) structure module: body, head, html, title

2) Text module: abbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, Var

3) Hypertext module:

4) List module: dl, dt, dd, ol, ul, li

5) Basic Forms: form, input, label, select, option, textarea

6) Basic Table: caption, table, td, th, tr

7) Image: img

8) Object: object, param

9) Metainformation: meta

10) Link: link

11) Base: base

The specific definitions and attributes of these elements are defined in [XHTML Mod] At http://www.w3.org/tr/2001/rec-xhtml-modularization-20010410 /.

Many of the attributes are comon. attrib, dtd also applies to this comon. attrib is defined in section 5.1. It is Core + l18N + Events + Style. The specific attributes are id, class, title, lang, style, and Events.

For example, the P tag belongs to the text module. We can see from section 5.2.2 that P only has the common attribute, so P does not support the align attribute, which is different from html4.0, the attribute list of P in html4.0 also includes the align attribute.

For example, the table label can be seen in section 5.6.1 that in addition to the common attribute, the summary and width attributes are also supported.

In addition to xhtml basic, xhtml mp also extends the following elements:

1) Some Forms module support (5.5.2 in DTD): supports fieldset and optgroup elements of this module.

2) partially supported by the Legacy module (section 5.22 In DTD): supports OL elements (only the start attribute is supported) and li elements (only the value attribute is supported)

3) support part of the Presentation module (section 5.4.1 In DTD): support for B, big, hr, I, small elements

4) Style sheet module support (section 5.17 In DTD): style element

5) style attribute module support (section 5.18 In DTD): style attribute (style attribute defines the style form of an element, which is related to CSS)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.